Welcome! Log In Create A New Profile

Advanced

Re: rewrite и location (apach => nginx)

April 09, 2011 06:00AM
Не срабатывает. nginx 0.8.5.4
Вот конфиг весь:

root /home/sayt/www;
index index.php index.html;

location =/ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root/scripts/$fastcgi_script_name;
include fastcgi_params;
}

location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $document_root/scripts$uri;
include fastcgi_params;
}

Заходим на http://sayt.ru/ и видим No input file specified.
Заходим на http://sayt.ru/scripts/ и все работает.
Subject Author Posted

rewrite и location (apach => nginx)

cul8er April 07, 2011 04:08AM

Re: rewrite и location (apach => nginx)

cul8er April 09, 2011 04:22AM

Re: rewrite и location (apach => nginx)

Igor Sysoev April 09, 2011 04:44AM

Re: rewrite и location (apach => nginx)

cul8er April 09, 2011 06:00AM

Re: rewrite и location (apach => nginx)

Igor Sysoev April 09, 2011 07:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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