Commit 02a2f9e3 authored by omega8cc's avatar omega8cc

Issue #1442906 by cweagans - Nginx should listen on all supplied IP addresses also on port 80.

parent c7d59973
......@@ -180,7 +180,10 @@ $ip_address = !empty($ip_address) ? $ip_address : '*';
?>
server {
limit_conn gulag 10; # like mod_evasive - this allows max 10 simultaneous connections from one IP address
listen <?php print $ip_address . ':' . $http_port; ?>;
#listen <?php print $ip_address . ':' . $http_port; ?>;
<?php foreach ($server->ip_addresses as $ip) :?>
listen <?php print $ip . ':' . $http_port; ?>;
<?php endforeach; ?>
server_name _;
location / {
root /var/www/nginx-default;
......
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