3 Star 7 Fork 5

kingofhua / docker-lnmp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
nginx.conf 977 Bytes
一键复制 编辑 原始数据 按行查看 历史
kingofzihua 提交于 2022-02-08 00:33 . update nginx.conf.
server {
listen 80;
server_name _;
charset utf-8;
root /usr/share/nginx/html;
index index.php index.html index.htm;
gzip on;
gzip_disable "msie6";
gzip_types text/plain text/css text/xml text/javascript application/json
application/x-javascript application/xml application/xml+rss application/javascript;
error_page 404 = /index.php;
access_log off;
error_log /var/log/nginx/error.log crit;
client_max_body_size 64m;
location / {
try_files $uri $uri/ /index.php?$args;
}
location /. {
return 404;
}
location ~ \.php$ {
include fastcgi_params;
try_files $uri =404;
fastcgi_pass php:9000;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_read_timeout 300;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_index index.php;
}
location ~ /\.ht {
deny all;
}
}
Shell
1
https://gitee.com/kingofhua/docker-lnmp.git
git@gitee.com:kingofhua/docker-lnmp.git
kingofhua
docker-lnmp
docker-lnmp
master

搜索帮助