On Sun, Mar 01, 2009 at 10:25:55PM +0300, Alexey V. Karagodov wrote:
On 01.03.2009, at 21:10, Igor Sysoev wrote:
On Sun, Mar 01, 2009 at 03:49:57PM +0300, Alexey V. Karagodov wrote:
server {
access_log /srv/logs/nginx/test.net-profit.ru.log combined;
error_log /srv/logs/nginx/test.net-profit.ru.log debug;
server_name test.net-profit.ru;
set $_document_root /srv/devel/sync/starstory/core;
include include/rewrite;
include include/listen_http;
include include/error;
include include/location_error;
root $_document_root;
А зачем такой root ?
на set $document_root ругается nginx -t
Разумеется, ведь получается рекурсия.
и эта переменная ( _document_root ) используется в других частях
конфига, fastcgi_param например
Нужно просто
root /srv/devel/sync/starstory/core;
и использовать $document_root.