1 Star 0 Fork 0

melody100/centos7-php8

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nginx_default.conf 1.12 KB
一键复制 编辑 原始数据 按行查看 历史
陈圣文 提交于 2023-11-23 21:00 . add some sh
server {
listen 80;
listen [::]:80;
server_name _;
root /app/www;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";
index index.php;
charset utf-8;
access_log /app/log/nginx/localhost.access.log main buffer=256k flush=2s;
error_log /app/log/nginx/localhost.error.log;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
error_page 404 /index.php;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
}
location ~* \.(jpg|jpeg|gif|png|bmp|ico|pdf|flv|swf|exe|html|htm|txt|css|js) {
add_header Cache-Control public;
add_header Cache-Control must-revalidate;
expires 7d;
log_not_found off;
}
location ~ /\.ht {
deny all;
}
location ~ /\.(?!well-known).* {
deny all;
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/melody100/centos7-php8.git
git@gitee.com:melody100/centos7-php8.git
melody100
centos7-php8
centos7-php8
master

搜索帮助