下面是vhost中的其中一个xxxx.conf文件 .
[Shell]
纯文本查看 复制代码
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
server {
listen 80;
server_name www.php20.com php20.com;
root /绝对路径;
location / {
index index.html index.php;
}
location ~ \.php{
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
}
}
|
以下代码可增删除 具体可参考首页 |
|
|
转载于:https://www.cnblogs.com/ghjbk/p/6727612.html