
nginx
文章平均质量分 56
用户昵称不能为空
想马儿跑又想马儿不吃草。情商很低怎么了
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LNMP : 502 Bad Gateway 解决小记,真正的原因
网站搬迁到新的服务器,原先一直都是LAMP,现在改为LNMP。 将重写文件 htaccess改成 nginx的 conf。放到了网站,可只能打开首页,其他重写页面一打开都是不停的加载。 加载等待几十分钟之后会提示 502 Bad Gateway! …… 后来逐一排查,排查到重写规则是没有问题,程序是没有问题,原因出在了数据库连接。 …… 排查到最后的原因居然是数据库连接地址 写原创 2014-10-16 00:02:06 · 12830 阅读 · 1 评论 -
nginx配置 实现 Apache的alias 案例
配置访问 /phpymadmin/ 实际访问是 的内容 d:/wamp/apps/phpmyadmin4.1.14/phpmyadmin/ , 调试了很久,最终才实现。 其实我本来phpmyadmin/是直接存放在 d:/wamp/apps/phpmyadmin4.1.14/,但是发现根本无法实现,最后把 d:/wamp/apps/phpmyadmin4.1.14/全部 移动到他自己目录下新原创 2014-12-27 17:48:15 · 2516 阅读 · 0 评论 -
解决nginx 报错提示:rewrite or internal redirection cycle while internally redirecting to "/",
配置好nginx+php-fpm,访问首页,提示报错: 2015/01/14 23:04:39 [error] 10964#2788: *2 rewrite or internal redirection cycle while internally redirecting to "/", client: 127.0.0.1, server: bk, request: "GET / HTTP/1原创 2015-01-14 23:10:11 · 82865 阅读 · 4 评论 -
nginx localhost 配置 localhost.conf
#开启目录浏览 #支持PHP fastCGI server { listen 80; server_name localhost 127.0.0.1; location / { root d:/localhost; index index.html index.htm index.php;原创 2014-12-09 10:49:35 · 9914 阅读 · 0 评论 -
nginx localhost 配置,开启目录浏览
以前使用Apache,有时候访问 localhost ,居然提示403 access die ,但有时候过几天又可以(没有修改过任何配置的情况下),很诡异,出现这样情况的时候不管是怎么修改配置都是提示403无权限!几率很低但一直无法解决。 换 nginx 后就没有再出现这样问题,autoindex 用的很爽。 配置文件 localhost.conf : 其中对 http://localhos原创 2015-02-01 11:43:53 · 14853 阅读 · 0 评论 -
nginx 重写规则!
#访问$uri #if exists $uri -> 访问他 #if $uri is not end of / and exists /Vhosts/$http_host/$uri ->访问他 #if $uri is end of / and exists /Cache/$http_host/$uri/index.html -> 访问他 #否则 $uri -> /index.php #原创 2014-12-09 09:42:51 · 2563 阅读 · 0 评论 -
CentOS 6.4 安装 nginx + php-fpm
准备篇 1、配置防火墙,开启80端口、3306端口 vi /etc/sysconfig/iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT #允许80端口通过防火墙 -A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACC转载 2014-11-30 18:25:40 · 2049 阅读 · 1 评论 -
nginx win7 vhost 多域名重写!
#文件 d:/nginx/vhost/xxx.com.conf server { listen 80; server_name xxx.com; location / { root d:/xxx.com; index index.html index.htm index.php;原创 2014-11-27 15:21:18 · 3694 阅读 · 0 评论 -
nginx win7 关闭 和重启 bat文件
nginx-1.6.2 + wamp 的PHP 1)关闭.bat @echo off echo Stopping nginx... taskkill /F /IM nginx.exe > nul echo Stopping PHP FastCGI... taskkill /F /IM php-cgi.exe > nul 2)启动.bat @echo原创 2014-11-27 15:15:50 · 6796 阅读 · 0 评论 -
在win7上安装PHP NGINX的坑爹问题……
之前一开始一直都是使用WAMP在WIN7上快速搭建环境,但是后来线上环境是nginx,也为了和线上环境一样,就把本地的WAMP删了,搞PHP NGINX,结果离谱的事情出现了。localhost 下的 PHP文件 A CURL请求B文件,超时,A里面只有一个CURL请求发起到B,也超时。解决方法:开启多个 php-cgi.exe@ECHO OFF ECHO Starting PHP FastCGI.原创 2017-04-11 11:40:30 · 737 阅读 · 0 评论