Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: свой root для опреденного урла
- To: nginx-ru@xxxxxxxxx
- Subject: Re: свой root для опреденного урла
- From: "georgiy_s" <nginx-forum@xxxxxxxx>
- Date: Wed, 12 Mar 2014 07:25:51 -0400
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=selenium.jlkhosting.com; s=x; h=Date:Sender:From:References:In-Reply-To:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=K4Q9+Zhcm7nsjPNwYuVfPFGEofyGrGwjOZ2VCg/JJAE=; b=CAEcXJje5srnpd3rVwZN5bCaNG7sA22rFehij2bz3HqJgJPdUVz9QEcZUookxWo6EAtATletwlfDeV2MvLB4+loqgwntldkRgrEA9I9AK+0vbwdDf7ihZymHmA56H66YC3Pv6cz5Xrxhws+bh4VntJonuDxJsVmYmu1zoYXLXus=;
- In-reply-to: <CAE-Urwjz+HB=Li-z1vem5CYXQRnrvCev36CmQV8Dt-j79uT5Og@mail.gmail.com>
- References: <CAE-Urwjz+HB=Li-z1vem5CYXQRnrvCev36CmQV8Dt-j79uT5Og@mail.gmail.com>
затрудняюсь ответить, вставили от безысходности. на данный момент добились
таких результатов:
создавая папку с таким же именем, как в location то всё работает, иначе не
работает.
сейчас конфиг такой:
server {
listen 80;
server_name test.loc;
root /var/www/test;
error_log /var/log/nginx/mytest.log;
index index.html index.php;
location / {
index index.html index.php;
#try_files $uri $uri/ /index.php?$args;
set $root /var/www/test;
}
location /qqq {
index index.html index.php;
#try_files $uri $uri/ /index.php?$args;
alias /var/www/test2;
location ~ \.php$ {
include fastcgi_params;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_index index.php;
fastcgi_param PATH_TRANSLATED
$document_root$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000;
}
}
location ~ \.php$ {
include fastcgi_params;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_index index.php;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000;
}
}
по этому урлу http://test.loc/qqq/ сейчас ошибка "File not found."
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,248289,248299#msg-248299
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru
|