Treat .htm files as PHP?

John Moore grails at
Thu Jul 2 01:01:38 MSD 2009

I know how to do this with Apache, not so sure with nginx. One one of
the websites I am hosting I want to use some PHP, but I don't want to
rename the files from *.htm to *.php - I want the *.htm pages to be
parsed as PHP (but for that site, or location, only). I should add that
I have PHP set up and working fine with nginx, so that is not an issue.



More information about the nginx mailing list