Welcome! Log In Create A New Profile

Advanced

Re: php fastcgi main/common config

Artifex Maximus
October 14, 2010 07:42AM
Hello!

On Thu, Oct 14, 2010 at 11:45 AM, Reinis Rozitis <r@roze.lv> wrote:
>> Obviously $MACRO_TO_REAL_PATH is not exists yet. The question is the
>> second configuration is possible with nginx 0.8.52 or not? Or might is
>> there any simple solution instead of lot of fastcgi stuff?
>
>
> You can always use (in  the fastcgi_params file):
>
> fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
>
> At least it works for me so the .php location handler is just simple:
>
>       location ~ \.php$ {
>               fastcgi_pass   127.0.0.1:1026;
>               fastcgi_index  index.php;
>               include        fastcgi_params;
>       }

Have tried but gives http error 404 to all php script. I had changed
fastcgi_params, rearrange conf as you outlined. In brief:

server {
location ~ \.php$ { fastcgi stuffs }
location / { root /www1/site/; }
location /site/ { alias /www2/page/; }
}

Bye,
a

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

php fastcgi main/common config

Artifex Maximus October 14, 2010 05:28AM

Re: php fastcgi main/common config

Reinis Rozitis October 14, 2010 05:48AM

Re: php fastcgi main/common config

Artifex Maximus October 14, 2010 06:12AM

Re: php fastcgi main/common config

Artifex Maximus October 14, 2010 07:42AM

Re: php fastcgi main/common config

Reinis Rozitis October 14, 2010 08:04AM

Re: php fastcgi main/common config

Artifex Maximus October 18, 2010 05:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 259
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