Welcome! Log In Create A New Profile

Advanced

fastcgi + php

Anton Kiryushkin
June 03, 2010 08:30AM
Подскажите пожалуйста, может я где-то туплю.
Есть конфиг, в котором обработка php уходит на php-cgi backend.

Location's, которые обрабатывают php выглядят так:

location ~ ^/upper/(.*\.php)$ {
fastcgi_pass 127.0.0.1:8888;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME /path/to/upper/$1;
fastcgi_param DOCUMENT_ROOT /path/to/upper/upper;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
}

location ~ ^/(.*\.php)$ {
fastcgi_pass 127.0.0.1:8888;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT /home/webmaster/prmtupdates/scripts;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
}

Проблема в том, что если запрашивается http://host/upper/php.php, то
обработка идет по второму локейшену, вместо первого.
В чем проблема?

--
Best regards,
Anton Kiryushkin,
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

fastcgi + php

Anton Kiryushkin June 03, 2010 08:30AM

Re: fastcgi + php

Vasiliy G Tolstov June 03, 2010 08:40AM

Re: fastcgi + php

Anton Kiryushkin June 03, 2010 08:46AM

Re: fastcgi + php

hg_04 June 03, 2010 09:34AM

Re: fastcgi + php

hg_04 June 03, 2010 09:40AM

Re: fastcgi + php

hg_04 June 03, 2010 09:44AM

Re: fastcgi + php

Maxim Dounin June 03, 2010 10:04AM

Re: fastcgi + php

Anton Kiryushkin June 03, 2010 10:08AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 64
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready