У меня есть рабочая установка Nginx и PHP-FPM, каталог по умолчанию для которых это / usr / share / nginx / html /
Кроме того, у меня есть рабочая установка SVN, она выглядит по умолчаниюэто каталог / var / www /
Я пытался изменить в nginx.conf путь по умолчанию, указывающий на / var / www / html, но это не сработало:
#
# The default server
#
server {
listen 80;
server_name _;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root /usr/share/nginx/html;
index index.php index.html index.htm;
}
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/html;
}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
##** I tried to change the line above to /var/www/html/**
include fastcgi_params;
Что именно нужно изменить в nginx.conf?или, может быть, я могу изменить каталог svn по умолчанию на / usr / share / nginx / html?Как я могу сделать что-то из обоих?