Commit 568c7816 authored by omega8cc's avatar omega8cc

Issue #2724273: Disabled Nginx sites return 404 instead of "Disabled" message

parent e772b0d5
......@@ -14,14 +14,14 @@ server {
<?php if ($satellite_mode == 'boa'): ?>
root /var/www/nginx-default;
index index.html index.htm;
### Do not reveal Aegir front-end URL here.
<?php else: ?>
return 404;
rewrite ^ <?php print $this->platform->server->web_disable_url . '/' . $this->uri ?>? permanent;
<?php endif; ?>
ssl on;
ssl_certificate <?php print $ssl_cert; ?>;
ssl_certificate_key <?php print $ssl_cert_key; ?>;
keepalive_timeout 70;
### Do not reveal Aegir front-end URL here.
}
<?php endif; ?>
......
......@@ -9,8 +9,8 @@ location ^~ /<?php print $subdir; ?>/ {
<?php if ($satellite_mode == 'boa'): ?>
root /var/www/nginx-default;
index index.html index.htm;
### Do not reveal Aegir front-end URL here.
<?php else: ?>
return 404;
rewrite ^ <?php print $this->platform->server->web_disable_url . '/' . $this->uri ?>? permanent;
<?php endif; ?>
### Do not reveal Aegir front-end URL here.
}
......@@ -11,8 +11,8 @@ server {
<?php if ($satellite_mode == 'boa'): ?>
root /var/www/nginx-default;
index index.html index.htm;
### Do not reveal Aegir front-end URL here.
<?php else: ?>
return 404;
rewrite ^ <?php print $this->platform->server->web_disable_url . '/' . $this->uri ?>? permanent;
<?php endif; ?>
### Do not reveal Aegir front-end URL here.
}
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