Welcome! Log In Create A New Profile

Advanced

Re: AddHandler application/x-httpd-php .htm in nginx?

Luka Horvatic
March 26, 2010 06:16AM
Edho P Arief wrote:
> On Fri, Mar 26, 2010 at 6:48 AM, Luka Horvatic <lists@ruby-forum.com>
> wrote:
>> That command in apache htaccess allows to read htm files as php,so then
>> you can load php file with extension htm.How do i enable this on nginx?
>> --
>
> location ~ \.htm$ {
> fastcgi_pass ...
> ...
> }
>
> --
> O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

Forgot to say how i tried following:
location ~ \.htm$ {
root /location;
fastcgi_pass 127.0.0.1:9000;

fastcgi_param SCRIPT_FILENAME
/location$fastcgi_script_name;
include fastcgi_params;
}
It didn't work,it still read php file as html file.On the other hand,i
bet it would work if i would pick some misc extension like php2.
--
Posted via http://www.ruby-forum.com/.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

AddHandler application/x-httpd-php .htm in nginx?

Luka Horvatic March 25, 2010 07:52PM

Re: AddHandler application/x-httpd-php .htm in nginx?

edogawaconan March 25, 2010 08:12PM

Re: AddHandler application/x-httpd-php .htm in nginx?

Luka Horvatic March 26, 2010 06:16AM

Re: AddHandler application/x-httpd-php .htm in nginx?

Cliff Wells August 17, 2010 07:04PM

Re: AddHandler application/x-httpd-php .htm in nginx?

codetr August 17, 2010 06:26PM

Re: AddHandler application/x-httpd-php .htm in nginx?

codetr August 18, 2010 01:26PM

Re: AddHandler application/x-httpd-php .htm in nginx?

codetr August 18, 2010 01:31PM

Re: AddHandler application/x-httpd-php .htm in nginx?

Cliff Wells August 18, 2010 03:30PM

Re: AddHandler application/x-httpd-php .htm in nginx?

codetr August 18, 2010 04:35PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 294
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready