想把www 文件夹移在其它盘符下,请问咋修改路径.能否顺便说下A版的修改方法
|
|
沙发#
发布于:2013-10-04 10:37
有人回答不》?
|
|
板凳#
发布于:2013-10-05 20:56
|
|
地板#
发布于:2013-10-09 19:37
|
|
4楼#
发布于:2013-10-09 19:40
upupw:手动请修改upupw\Nginx\conf\vhosts.conf文件中对应虚拟主机路径即可。回到原帖我是菜鸟.如果想修改其它盘符,只改盘符其它都不用动么?默认在D盘,我改成E可以吧.(把www移动在E盘)请看下面 server { listen 80; server_name localhost alias 127.0.0.1; location / { root D:/upupw/htdocs; index index.html index.htm index.php u.php; include D:/upupw/htdocs/up-*.conf; } error_page 404 /404.html; location ~ ^.+\.php { root D:/upupw/htdocs; fastcgi_pass bakend; fastcgi_index index.php; fastcgi_split_path_info ^((?U).+\.php)(/?.+)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; include fastcgi.conf; } } #server localhost end} |
|