Commit 4100ae7a authored by omega8cc's avatar omega8cc Committed by anarcat

Issue #1183500 - default Nginx vhost should still use IP if available or it no...

Issue #1183500 - default Nginx vhost should still use IP if available or it no longer works as a default vhost.
parent 29df3eab
......@@ -116,9 +116,12 @@ if ($nginx_has_upload_progress) {
### nginx default server
#######################################################
<?php
$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 $http_port; ?>;
listen <?php print $ip_address . ':' . $http_port; ?>;
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