ngnix
iteye_5799
这个作者很懒,什么都没留下…
展开
-
Red Hat Nginx Init Script
Should work on RHEL, Fedora, CentOS. Tested on CentOS 5. Save this file as /etc/init.d/nginx #!/bin/sh## nginx - this script starts and stops the nginx daemon## chkconfi...原创 2012-01-16 17:58:11 · 104 阅读 · 0 评论 -
Linux普通用户如何使用80端口启动程序
大家都知道默认情况下Linux的1024以下端口是只有root用户才有权限占用,于是我们的tomcat,apache,nginx等等程序如果想要用普通用户来占用80端口的话就会抛出permission denied的异常。 解决办法有两种: 1.使用非80端口启动程序,然后再用iptables做一个端口转发。 2.假设我们需要启动的程序是nginx,那么这么做也可以达...原创 2012-02-02 16:09:02 · 688 阅读 · 0 评论 -
nginx配置详解
Nginx 配置文件详解 user nginx ; #用户 worker_processes 8; #工作进程,根据硬件调整,大于等于cpu核数 error_log logs/nginx_error.log crit; #错误日志 pid logs/nginx.pid; ...原创 2012-02-10 15:51:23 · 94 阅读 · 0 评论 -
Nginx下400 Bad Request The plain HTTP request was sent to HTTPS port的原因
upstream payment443{ server 10.11.157.111:443 backup; server 10.11.157.222:443 weight=1; } Location ~ /payment/ { ssi on; proxy_pass http://pa...原创 2012-03-28 23:06:14 · 4401 阅读 · 0 评论