Nginx
hikelee
这个作者很懒,什么都没留下…
展开
-
Ubuntu Nginx 配置
安装nginxsudo apt-get install nginxUbuntu安装之后的文件结构大致为:所有的配置文件都在/etc/nginx下,并且每个虚拟主机已经安排在了/etc/nginx/sites-available下程序文件在/usr/sbin/nginx日志放在了/var/log/nginx中并已经在/etc/init.d/下创建了启动脚本nginx默认的虚拟主机的目转载 2013-12-19 10:08:22 · 448 阅读 · 0 评论 -
nginx+tomcat
location /tomcat-context/ { proxy_pass http://localhost:8080; proxy_redirect off; proxy_set_header HOST $host; proxy_set_header X-原创 2013-12-19 10:45:35 · 286 阅读 · 0 评论 -
Ubuntu, LVS+keepalived+Nginx
LVS Server : 192.168.0.201Virtual IP : 192.168.0.220Real Server1 : 192.168.0.202Real Server2 : 192.168.0.203Real Server1(192.168.0.202) & Real Server2(192.168.0.203), do following same setti原创 2013-12-19 16:34:26 · 503 阅读 · 0 评论 -
Nginx并发查看
No1、通过浏览器查看 通过web界面查看时Nginx需要开启status模块,也就是安装Nginx时加上--with-http_stub_status_module.然后配置Nginx.conf,在server点里面加入如下内容location /status {stub_status on;access_log /usr/local/nginx/logs/status.log;转载 2014-02-15 21:05:59 · 357 阅读 · 0 评论 -
ubuntu 12.04 搭建nginx + php + mysql +phpmyadmin
直接php+mysql这是Linux web服务器的黄金组合。今天我们一来学如何在ubuntu 12.04 中搭建lnmp环境。1. 使用官方PPA安装 Nginx 最新版本,使用以下命令:sudo add-apt-repository ppa:nginx/stablesudo apt-get updatesudo apt-get install nginxNginx相关控转载 2014-02-17 10:20:21 · 342 阅读 · 0 评论 -
用ngxtop监视 NGINX
1. sudo pip install ngxtop2. ngxtop原创 2014-03-31 23:11:42 · 419 阅读 · 0 评论 -
nginx 全局变量
名称,说明(变量列表来源于文件 ngx_http_variables )$args,请求中的参数;$binary_remote_addr,远程地址的二进制表示$body_bytes_sent,已发送的消息体字节数$content_length,"HTTP请求信息里的""Content-Length"";"$content_type,"请求信息里的""Content-Type""原创 2014-03-20 18:33:48 · 853 阅读 · 0 评论 -
Nginx Block And Deny IP Address OR Network Subnets
How do I block or deny access based on the host name or IP address of the client visiting website under nginx web server?Nginx comes with a simple module called ngx_http_access_module to allow o转载 2014-04-05 17:44:22 · 1502 阅读 · 0 评论 -
Increase “Open Files Limit”
If you are getting error “Too many open files (24)” then your application/command/script is hitting max open file limit allowed by linux. You need to increase open file limit as below:Increase lim转载 2014-04-05 18:13:55 · 566 阅读 · 0 评论