![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nginx
桃根仙
这个作者很懒,什么都没留下…
展开
-
nginx 反向代理 负载均衡配置
nginx 反向代理: location ~ \.(jpeg|jpg|png|gif)${ proxy_pass http://192.168.2.42:80; proxy_set_header X-Forwarded-For $remote_addr; } 负载均衡: upstream imageserver{ server 192.168.1.204:80 we...原创 2018-10-17 10:39:31 · 308 阅读 · 0 评论 -
nginx 支持pathinfo
修改配置文件: #典型配置 location ~ \.php${ root html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php fastcgi_param SCRIPT_FILENAME $DOCUMENT_ROOR$fastcgi_script_name; include fastcgi_...原创 2018-10-17 11:02:56 · 427 阅读 · 0 评论 -
nginx 配置URL重写(实现隐藏index.php)
正则方式: location / { root html/xxxx/yyyy/; index index.php index.html; if ( !-e $request_filename ){ rewrite(.*) /index.php/$1; } } /auth/login index.php?/auth/login try_files方式: nginx.con...原创 2018-10-17 11:29:58 · 5207 阅读 · 0 评论 -
lnamp服务架构下配置多站点+阿里云免费证书
1.关于lnamp架构介绍 linux+nginx+apache+mysql+php 2.给大家分享一个这种架构的一键安装脚本ezhttp 下载地址:https://www.oschina.net/p/ezhttp 备用下载地址:https://github.com/centos-bz/ezhttp 3.多站点配置: nginx配置: error_log logs/error...原创 2019-01-13 10:02:28 · 352 阅读 · 0 评论