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

更新 nginx-site.conf

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