server
{
listen 80;(端口)
server_name www.XXXXXX .com;(域名)
index index.html index.htm index.php default.html default.htm default.php;
root /aaa/ddd/sss/;(项目路径)
include rewrite/other.conf;
include enable-php.conf;
location / {
try_files $uri
u
r
i
/
/
i
n
d
e
x
.
p
h
p
?
uri/ /index.php?
uri//index.php?query_string;
if (!-e KaTeX parse error: Expected 'EOF', got '}' at position 90: … } }̲ locati…
{
expires 30d;
}
location ~ .*.(js|css)?$
{
expires 12h;
}
location ~ /.well-known {
allow all;
}
location ~ /.
{
deny all;
}
access_log /home/wwwlogs/www.XXXXXX.com.log;(日志)
}
服务器nginx配置文件-PHP(自用)
最新推荐文章于 2023-04-18 10:22:45 发布