Commit dfd6a122 authored by omega8cc's avatar omega8cc

Update description for limit_conn in Nginx.

parent e2c2ac10
......@@ -181,7 +181,7 @@ map $args $is_denied {
$ip_address = !empty($ip_address) ? $ip_address : '*';
?>
server {
limit_conn gulag 32; # like mod_evasive - this allows max 18 simultaneous connections from one IP address
limit_conn gulag 32; # like mod_evasive - this allows max 32 simultaneous connections from one IP address
<?php
if ($ip_address == '*') {
print " listen {$ip_address}:{$http_port};\n";
......
......@@ -23,7 +23,7 @@ if ($ssl_redirection || $this->redirection) {
server {
include <?php print "{$server->include_path}"; ?>/fastcgi_params.conf;
limit_conn gulag 32; # like mod_evasive - this allows max 18 simultaneous connections from one IP address
limit_conn gulag 32; # like mod_evasive - this allows max 32 simultaneous connections from one IP address
<?php
if ($ip_address == '*') {
print " listen {$ip_address}:{$http_port};\n";
......
......@@ -5,7 +5,7 @@
#######################################################
server {
limit_conn gulag 32; # like mod_evasive - this allows max 18 simultaneous connections from one IP address
limit_conn gulag 32; # like mod_evasive - this allows max 32 simultaneous connections from one IP address
<?php foreach ($server->ip_addresses as $ip) :?>
listen <?php print $ip . ':' . $http_ssl_port; ?>;
<?php endforeach; ?>
......
......@@ -21,7 +21,7 @@ server {
server {
include <?php print "{$server->include_path}"; ?>/fastcgi_ssl_params.conf;
limit_conn gulag 32; # like mod_evasive - this allows max 18 simultaneous connections from one IP address
limit_conn gulag 32; # like mod_evasive - this allows max 32 simultaneous connections from one IP address
listen <?php print "{$ip_address}:{$http_ssl_port}"; ?>;
server_name <?php print $this->uri; ?><?php if (!$this->redirection && is_array($this->aliases)) : foreach ($this->aliases as $alias_url) : if (trim($alias_url)) : ?> <?php print $alias_url; ?><?php endif; endforeach; endif; ?>;
root <?php print "{$this->root}"; ?>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment