Treat .htm files as PHP?

Phillip Oldham phill at theactivitypeople.co.uk
Thu Jul 2 13:28:20 MSD 2009


John Moore wrote:
> Michael Shadle wrote:
>> Should be as simple as changing a php block and changing the 
>> extension to htm and passing it on to fastcgi like normal. I think.
> Hmm, I'm not sure I quite understand what you mean here. Could you 
> perhaps give me an example? When I did what I think you meant, I got 
> an error page saying 'No input file specified'.
>
> Thx.
Follow this: http://wiki.nginx.org/NginxFcgiExample - and just change 
the location block so it checks for .html instead of .php.

More details can be found here:
http://wiki.nginx.org/NginxConfiguration
http://wiki.nginx.org/NginxHttpFcgiModule





More information about the nginx mailing list