nginx
文章平均质量分 76
xing2233
xing8901@foxmail.com
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
nginx---进程开启、关闭和重载配置文件
环境: centOS6.4 32位原创 2014-09-23 22:03:14 · 2028 阅读 · 0 评论 -
nginx---配置文件中根据来源IP,定向访问
cd /usr/local/nginx/conf/ vi nginx.conf 配置如下 #user nobody; worker_processes 2; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs原创 2015-01-15 15:31:15 · 1356 阅读 · 0 评论 -
nginx---X-Accel-Redirect(X-Sendfile)
module address: http://wiki.nginx.org/XSendfile原创 2015-06-10 17:24:05 · 581 阅读 · 0 评论 -
nginx---增加perl-module
重新编译nginx不需要指定目录 yum -y install perl-devel perl-ExtUtils-Embed cd /home/nginx-1.6.2 ./configure --with-http_perl_module make && make install原创 2015-01-06 13:06:16 · 1035 阅读 · 0 评论 -
nginx---日志管理
#!/bin/bash a=$(du -b /usr/local/nginx/logs/access.log | awk '{print $1}') echo $a if [ $a -gt 1024 ];then mv /usr/local/nginx/logs/access.log /usr/local/nginx/logs/aa.log kill -USR1 `cat /usr/local/n原创 2014-10-04 11:41:16 · 391 阅读 · 0 评论 -
nginx---虚拟主机配置
http { include mime.types; default_type application/octet-stream; #log_format main '$remote_addr - $remote_user [$time_local] "$request" ' # '$status $body_b原创 2014-10-03 23:14:27 · 358 阅读 · 0 评论 -
nginx---支持thinkphp url重写
server { listen 80; server_name my.dev; access_log logs/my.dev_access.log; root /usr/local/nginx/html/; index index.php; location / {原创 2014-10-28 23:09:42 · 994 阅读 · 0 评论 -
nginx---支持php 框架 pathinfo 模式
server { listen 80; server_name my.dev; access_log logs/my.dev_access.log; #index index.php root /data/hx; index index.php; location ~ \.php {原创 2014-10-24 16:19:17 · 520 阅读 · 0 评论 -
nginx---反向代理
动静分离原创 2014-10-07 17:11:45 · 372 阅读 · 0 评论 -
nginx---编译安装
环境: centOS6.4 32位原创 2014-09-23 20:15:53 · 443 阅读 · 0 评论 -
nginx---别名(alias)在ci框架的应用
location /pa { alias /data/hx/test/web; index index.php; if (!-e $request_filename) { rewrite ^/(.*)$ /pa/index.php/$1 last; } } location ~ /pa/.+\.php.*原创 2015-11-29 17:38:05 · 1042 阅读 · 0 评论
分享