0%

nginx 配置文件

nginx配置

/etc/nginx/sites-enable下的v-host配置文件
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
server {
listen 80;
server_name divint3.com;
root /home/divint3/WWW/tp5/public;

location / {
index index.php index.html index.htm;

if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php;
}
}
}

location ~ \.php($|/) {
include fastcgi_params;
fastcgi_pass unix:/run/php/php7.2-fpm.sock;
fastcgi_index index.php;
}
}
恰饭,恰饭