ChinaUnix.net
相关文章推荐:

nginx 安全配置 安全加固

请问一下,在 nginx 下如何反向代理设置? 网上搜索了很久也没找到, nginx 中文资料太少了 (希望那位大侠能提供一份中文手册) 应用如下: 192.168.1.33 机器上安装有 nginx + apache22( port : 81 ) 192.168.1.233 机器上安装有 apache22 我的外网地址指向80端口指向在 192.168.1.33 我想通过实现 : www.domainA.com 指向 192.168.1.33:81 www.domainB.com 指向 192.168.1.233:80 请问一下如何实现呢? 我的环境是 Ubu...

by BSD_KT - 服务器应用 - 2008-08-21 09:17:36 阅读(2464) 回复(2)

相关讨论

nginx的root配置 root syntax: root path default: root html context: http, server, location, if in location root specifies the document root for the requests. For example, with this configuration location /i/ { root /spool/w3; } A request for "/i/top.gif" will return the file "/spool/w3/i/top.gif". You can use variables in the argument. 发现还有种方法 root /us...

by zhengwei_zw - BSD - 2008-07-22 16:51:39 阅读(5415) 回复(1)

#运行用户 user nobody nobody; #启动进程 worker_processes 2; #全局错误日志及PID文件 error_log logs/error.log notice; pid logs/nginx.pid; #工作模式及连接数上限 events[color="navy"]{use epoll; worker_connections 1024;[color="navy"]}#设定http服务器,利用它的反向 代理 功能提供 负载均衡 支持 http[color="navy"]{#设定mime类型 include conf/mime.types; default_type application/octet-str...

by 剑心通明 - BSD文档中心 - 2008-03-23 20:34:21 阅读(1144) 回复(0)

我的应用有一台数据库服务器和一台web服务器组成。 web服务器:nginx+php-cgi centos5.0 ,数据库centos5.0,mysql5.0.36 当时网站访问量大的时候web压力很大,但是mysql压力很小。 http://bbs.****.com/nginxStatus 显示waiting数量很大。 nginx配置: worker_processes 8; pid /var/run/nginx/nginx.pid; # [ debug | info | notice | warn | error | crit ] #error_log /var/log/nginx.error_log info; #Specifies th...

by jiangyonghe - 服务器应用 - 2009-07-28 16:33:21 阅读(1579) 回复(3)

1.请问nginx配置文件语法在哪里有文档,google过实在找不到 2.判断一个变量值是否为空怎样写 if (-X $http_YYYY) { // 这里的X选项应该是什么? }

by Sam1860 - 服务器应用 - 2008-12-20 18:43:26 阅读(3664) 回复(1)

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # location ~ \.php$ { fastcgi_pass 127.0.0.1:900; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /usr/local/etc/nginx/fastcgi.conf ; include fastcgi_params; } 不知道怎么写 L: 1 C: 1 =======================================================...

by 啊泰 - BSD - 2007-08-07 14:58:02 阅读(1754) 回复(0)

论坛其他模块中的一些高手说nginx挺不错,那sco上能配置nginx吗?

by 光速 - 其他UNIX - 2008-12-25 09:43:44 阅读(1988) 回复(2)

FreeBSD 下 nginx 的安装配置 在freebsd7.0RC1下试验,其它平台未测试 一、安装 1、php 代码:cd /usr/ports/lang/php5 make install clean2、nginx 代码:cd /usr/ports/www/nginx make install clean3、lighttpd 代码:cd /usr/ports/www/lighttpd make cd ./work/lighttpd-1.4.18/src cp spawn-fcgi /usr/local/bin cd ../../../ make clean4、启动spawn-fcgi 代码:spawn-fcgi -a 127.0.0.1 -p 8888 -C 25 -u www -f /usr/l...

by zbhdpx - BSD文档中心 - 2008-11-17 14:19:59 阅读(2363) 回复(0)

location / { root /cygdrive/d/phpdoc/; index index.html index.htm index.php; 如果你网站文件目录是 到d:/phpdoc/ 要将配置文件写成 root /cygdrive/d/phpdoc/;

by unixyeah - PHP - 2008-12-28 20:11:46 阅读(4376) 回复(3)

在google baidu 找了半天也没找到,请高手指点一下,如下包含 bb.shtml ,应该和Apache lighttpd 差不多吧。但找不到nginx配置文档 aaaaaaaaa 302 Found

302 Found


nginx

by dcyhldcyhl - Web开发 - 2008-07-14 14:44:17 阅读(2810) 回复(2)

最近在将apache换成nginx ,其中遇到几个问题,,baidu,google 都找遍了,请高人指教! 我的配置: ubuntu 8.04 Server 64 nginx/0.5.33 FastCGI PHP Version 5.2.4 1.关于nginx DOCUMENT_ROOT 的问题 问题如下: 我在配置文件中设置为fastcgi_param DOCUMENT_ROOT $document_root; 在phpinfo();中显示DOCUMENT_ROOT 为 /usr/local/nginx/html 我在配置文件中找遍了,都没找到怎么去掉这个/usr/local/nginx/html恢复DOCUMEN...

by derekchen - 服务器应用 - 2008-06-11 19:44:56 阅读(5609) 回复(4)