![]() |
Apache tries to run .php.html files through fastcgi - Printable Version +- ispCP - Board - Support (http://www.isp-control.net/forum) +-- Forum: ispCP Omega Support Area (/forum-30.html) +--- Forum: Usage (/forum-34.html) +--- Thread: Apache tries to run .php.html files through fastcgi (/thread-7099.html) |
Apache tries to run .php.html files through fastcgi - kilburn - 07-01-2009 06:28 PM Hi guys, I've a problem on one of my servers, and I'm getting mad trying to understand why it happens and how to solve it. The thing goes as follows: I've a website which (weirdly) has files such as "dvd.php.html". Ovbiously, my intuition is that these files should be handler by apache as normal .html files, whereas, in fact, it is sending them through fcgid. Moreover, it tries to run them as fcgid handlers, as can be seen in the suexec.log files: Code: [2009-07-01 10:22:27]: uid: (2162/vu2162) gid: (2162/vu2162) cmd: dvd.php.htm Normal "php" files get executed through the ispcp-defined handler, as they should be. In these cases, the logfile looks like: Code: [2009-07-01 11:41:47]: uid: (2126/vu2126) gid: (2126/vu2126) cmd: php5-fcgi-starter So, my question is: how the hell can I tell apache that "*.php.htm" are NORMAL html files and should be server as usual? Further, why is it willing to send them through fastcgi in the first place? Thanks y'all! For completeness, here are the system specs and the other related logfiles: System: Code: Debian Lenny 32bits /var/log/apache2/users/domain.com-error.log: Code: [Wed Jul 01 10:22:30 2009] [notice] mod_fcgid: process /var/www/virtual/domain.com/htdocs/dvd.php.htm(30373) exit(communication error), terminated by calling exit(), return code: 116 RE: Apache tries to run .php.html files through fastcgi - BeNe - 07-01-2009 06:47 PM Just a short brainstorming! You can try to add an Handler in a .htaccess File like this: Code: AddType application/x-httpd-php .html .php .htm Greez BeNe RE: Apache tries to run .php.html files through fastcgi - kilburn - 07-01-2009 07:13 PM That would probably force apache to send ".php.htm" files through the php-handling fcgid server, but it's not what I want. I just need ".php.htm" files to be handled as what they are, normal html files that should be served by apache itself! |