
Nginx
worldzhy
感觉
展开
-
nginx.conf
enable php location ~ [^/]\.php(/|$) { try_files $uri =404; fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_index index.php; include fastcgi.conf; } ...原创 2020-01-08 09:52:15 · 119 阅读 · 0 评论 -
nginx 和 php 的坑
环境:EC2上跑docker nginx现象:502 bad gateway解决方法:查看 /var/log/nginx/error.log2020/01/07 14:43:30 [crit] 17362#17362: *4 connect() to unix:/tmp/php-cgi.sock failed (2: No such file or directory)...原创 2020-01-07 23:14:01 · 275 阅读 · 0 评论 -
nginx unit 使用教程
官方文档https://unit.nginx.org/通过 docker 安装$ docker pull nginx/unit$ docker image lsREPOSITORY TAG IMAGE ID CREATED SIZEnginx latest...原创 2020-01-07 18:32:06 · 820 阅读 · 0 评论 -
nginx 配置文件 enable-php.conf
location ~ [^/]\.php(/|$) { try_files $uri =404; fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_index index.php; include fastcgi.conf; ...原创 2020-01-07 22:52:54 · 2750 阅读 · 3 评论 -
nginx 基本配置
一篇比较好的参考文https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-18-041. 在 Ubuntu 上安装 Nginxsudo apt-get nginx2. 启动 Nginx 之前先测试$ sudo nginx -tnginx: the configur...原创 2020-01-06 16:26:18 · 1135 阅读 · 0 评论