server { listen 80; server_name 10.5.4.21 alias ; location / { root F:/upupw/vhosts/10.5.4.21; index index.html index.htm default.html default.htm index.php default.php u.php; include F:/upupw/vhosts/10.5.4.21/up-*.conf; } error_page 404 /404.html; location ~ ^.+\.php { root F:/upupw/vhosts/10.5.4.21; 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 10.5.4.21 end} 以上是创建虚拟主机时自带的配置 那位老大指点下 xiaocms下 如何设置 |
|
1楼2014-06-12 13:55:20
回复 |
没设置过 参考下dz的规则吧 反正伪静态都差不多 |
|
2楼2014-06-12 15:20:16
回复 |