我有一個Nginx和PHP-FPM的工作安裝,它的默認索引目錄是/ usr/share/nginx/html/如何使用nginx + php-fpm設置SVN?
另外,我有一個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?我怎麼能做這兩件事?
您如何更改默認路徑? – ariefbayu