[Web]
请问在Nginx里如何限制某一个文件的连接数
nginx version: nginx/0.7.65
安装了NginxHttpLimitZoneModule
比如我想限制/bbs/index.php的连接数,我使用
server{
.......
location ~ ^/bbs/index.php$
{
limit_conn index 1;
}
location ~ \.php$ {
root html;
fastcgi_pass unix:/dev/shm/php-cgi.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/xxx/public_html$fastcgi_script_name;
include fastcgi_params;
}
.........
}
可是这样把php的源代码都泄漏出来了
请问怎么样才能限制某一个php文件的连接数
不知道应该怎么样