ChinaUnix.net
相关文章推荐:

nginx 限制可用的请求方法

nginx 有没有限制:对某一个文件的下载只能有一个线程 感谢大家的帮忙!

by zhangkeyijian - 服务器应用 - 2009-05-13 09:28:24 阅读(2842) 回复(0)

相关讨论

各位大侠们! http { limit_zone one $binary_remote_addr 10m; server { location / { limit_conn one 1; } } }

by zhgbwin - 服务器应用 - 2009-07-14 17:04:55 阅读(1527) 回复(1)

这几天用freebsd7.0+nginx+php(fastcgi)做了个web server,使用虚拟服务器的方式做以下限制,如: 虚拟服务器a1.abc.com 和 a2.abc.com 现在需要限制a1与a2的并发连接与最大连接数,最大流量,流量限制之类的, 呵,自己想了这些感觉很麻烦,不知可不可以这样实现呢,用那些类似的软件可以做到呢? 谢谢!

by chenkangle - BSD - 2008-07-27 11:06:12 阅读(2163) 回复(6)

最近想把apache迁移到nginx上去,但是发现这么一个问题。 apache日志中有这么一个变量“%D ”(服务器处理本请求所用时间,以微秒为单位。) 但是在nginx似乎没有这个变量,而且这个变量又是必须的,如何解决呢?

by mageguoshi - 服务器应用 - 2008-12-24 13:26:37 阅读(4077) 回复(3)

遇到一个很头疼的问题. 公司现在的web服务器是之前的系统管理员按照http://blog.s135.com/post/314.htm文章进行配置的.因为是内部测试,每天的流量也就2000多IP,同时在线最多也就一百多人.现在的问题是时不时的php-cgi进程突然从1到5、600。然后又迅速回到1.如果到5\600时,网站打开就会很慢或者打不开,查了很多资料,使用了php-fpm,但问题依然存在。快被折腾疯了,不知道该从何入手 nginx配置 [code]user www www; worker_proc...

by e4twood - 服务器应用 - 2008-12-02 14:01:18 阅读(1899) 回复(1)

大家好,我用的是freebsd7.0+nginx/0.6.32用的是ports方式安装,现在nginx安装后能成功启动,现在我想让nginx支持php,所以安装了fast-cgi,运行了 www#spawn-fcgi -a 127.0.0.1 -p 9000 -C 25 -u www -f /usr/local/bin/php-cgi 这条命令,去掉了/usr/local/etc/nginx/nginx.conf的php支持模块 location ~ \.php$ { root html; fastcgi_pass 127.0.0.1:9000; fastcgi_index index...

by chenkangle - BSD - 2008-07-31 00:12:29 阅读(4394) 回复(5)

apache 下限制某个目录访问很容易的, nginx 下的方法也差不多,只不过大家用的少而已,我简单的总结一下: 根据nginx的文档: QUOTE: ngx_http_access_module This module provides a simple host-based access control. Module ngx_http_access_module makes it possible to control access for specific IP-addresses of clients. Rules are checked in the order of their record to the first match. Example configuration...

by 剑心通明 - BSD文档中心 - 2008-11-04 10:53:17 阅读(2558) 回复(0)

apache下很容易实现,nginx刚测试了一下,不是太熟悉,想实现某个目录只允许某些ip、ip段访问,应该怎么做?

by 剑心通明 - BSD - 2008-07-13 18:38:00 阅读(5239) 回复(7)

要使用nginx下的泛域名支持,必须在编译 nginx的时候加上 --with-http_sub_module freebsd下ports安装的时候有提示的,选上即可。 方法我google了半天,网上的好多我照做都是不行的,例如这个: listen 80; server_name www.yourdomain.com *.yourdomain.com; 这个会提示: # nginx -t 2009/01/04 13:22:56 [emerg] 63944#0: conflicting parameter "*.bsdlover.cn" in www.conf:14 2009/01/04 13:22:56 [emerg] 63944#...

by 剑心通明 - BSD文档中心 - 2009-01-06 09:17:24 阅读(1720) 回复(0)

求freebsd7+nginx+python 的安装配置方法,Thanks! 我已经做了这两步 tar zxvf python-2.5.tar.gz cd python-2.5 ./configure make make install cd /usr/ports/www/py-django make install clean :wink: :em03: [ 本帖最后由 lhm0491 于 2008-7-16 12:50 编辑 ]

by lhm0491 - BSD - 2008-07-16 18:11:12 阅读(1903) 回复(6)

安装nginx [code] ./configure --prefix=/usr/local/vhost --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_xslt_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-debug make && make install[/code] 安装php ...

by scyzxp - 服务器应用 - 2009-09-09 16:36:42 阅读(5019) 回复(15)