Commit 29df3eab authored by omega8cc's avatar omega8cc Committed by anarcat

Issue #1183500 - Nginx config should fall back to standard wildcard if...

Issue #1183500 - Nginx config should fall back to standard wildcard if $ip_address is empty for any reason.
parent d3d91b50
......@@ -118,9 +118,7 @@ if ($nginx_has_upload_progress) {
server {
limit_conn gulag 10; # like mod_evasive - this allows max 10 simultaneous connections from one IP address
<?php foreach ($server->ip_addresses as $ip) : ?>
listen <?php print $ip . ':' . $http_port; ?>;
<?php endforeach; ?>
listen *:<?php print $http_port; ?>;
server_name _;
location / {
root /var/www/nginx-default;
......
<?php
$ip_address = !empty($ip_address) ? $ip_address : '*';
if ($ssl_redirection || $this->redirection) {
// Redirect all aliases to the main http url using separate vhosts blocks to avoid if{} in Nginx.
foreach ($this->aliases as $alias_url) {
......
<?php
$ip_address = !empty($ip_address) ? $ip_address : '*';
?>
server {
listen <?php print $ip_address . ':' . $http_port; ?>;
server_name <?php print $this->uri . ' ' . implode(' ', $this->aliases); ?>;
......
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