提交 2e506748 authored 作者: 陈欢's avatar 陈欢

更新 nginx-site.conf

上级 24095d85
......@@ -2,7 +2,7 @@ server {
listen 80; ## listen for ipv4; this line is default and implied
listen [::]:80 default ipv6only=on; ## listen for ipv6
root /var/www/html;
root /var/www/html/public;
index index.php index.html index.htm;
# Make site accessible from http://localhost/
......@@ -25,11 +25,9 @@ server {
return 403;
}
location / {
# First attempt to serve request as file, then
# as directory, then fall back to index.html
try_files $uri $uri/ =404;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
}
error_page 404 /404.html;
location = /404.html {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论