![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nginx
wjp@001
这个作者很懒,什么都没留下…
展开
-
详解nginx配置url重定向-反向代理
本文系统:Centos6.5_x64三台主机:nginx主机,hostname: master.lansgg.com IP: 192.168.10.128 apache主机,hostname: client1.lansgg.com IP: 192.168.10.129一、nginx 地址重定向二、nginx 反向代理1、地址重定向:是指当使...转载 2020-04-08 22:14:06 · 2654 阅读 · 0 评论 -
nginx 配置一个域名多个项目
server { listen 80; server_name www.kmshsh.com; root "D:/phpstudy_pro/WWW/kmsh/public"; location / { index index.php index.html error/index.html;...原创 2020-04-08 21:51:07 · 1206 阅读 · 0 评论 -
phpstudy切换nginx配置文件
nginx.conf server { listen 80; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; root "D:/phpStudy/WWW"; loc...原创 2018-11-17 15:14:49 · 6671 阅读 · 0 评论 -
connect() failed (111: Connection refused) while connecting to upstream, client: 111.199.84.121, s
配置好lnmp后,在浏览器中运行程序后,出现上面的错误。转自:http://www.xuejiehome.com/blread-1828.htmlI'm experiencing 502 gateway errors when accessing a PHP file in a directory (http://domain.com/dev/index.php), the logs si...转载 2018-11-28 13:31:02 · 3889 阅读 · 0 评论 -
tp3.2.3 nginx U方法生成的路径都带./
在入口文件定义一下就可以了define('_PHP_FILE_',$_SERVER['SCRIPT_NAME']);原创 2019-02-12 15:10:33 · 375 阅读 · 0 评论 -
lnmp,微信小程序报Provisional headers are shown
1,控制器头加header("Access-Control-Allow-Origin: *");header("Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE");header('Access-Control-Allow-Headers:x-requested-with,content-type');2,s...原创 2019-02-13 13:20:44 · 845 阅读 · 0 评论 -
nginx location匹配规则
http://www.nginx.cn/115.htmlhttp://www.ruanyifeng.com/blog/2011/03/url_hash.html原创 2019-05-07 12:17:16 · 89 阅读 · 0 评论 -
Linux下启动,停止,重启Nginx、Mysql、PHP
https://www.cnblogs.com/yeshaoxiang/p/8659708.htmlLINUX启动Nginx的命令:一、查询是否启动[root@jiang php-fpm.d]# ps -ef | grep nginxroot 25225 1 0 19:26 ? 00:00:00 nginx: master process /app/n...原创 2019-07-16 14:01:08 · 151 阅读 · 0 评论 -
nginx配置http和https可同时访问方法
给nginx配置SSL证书之后,https可以正常访问,http访问显示400错误,nginx的配置如下:server {listen 80 default backlog=2048;listen 443;server_name lvtao.net;root /var/www/html;ssl on;ssl_certificate /usr/local/Tengine/ssl...转载 2019-10-08 16:27:49 · 3666 阅读 · 0 评论