Commit d51dee44 authored by omega8cc's avatar omega8cc

Issue #2724273: Nginx -- Use 302 tmp redirect for web_disable_url

parent 568c7816
......@@ -16,7 +16,7 @@ server {
index index.html index.htm;
### Do not reveal Aegir front-end URL here.
<?php else: ?>
rewrite ^ <?php print $this->platform->server->web_disable_url . '/' . $this->uri ?>? permanent;
rewrite ^ <?php print $this->platform->server->web_disable_url . '/' . $this->uri ?>? redirect;
<?php endif; ?>
ssl on;
ssl_certificate <?php print $ssl_cert; ?>;
......
......@@ -11,6 +11,6 @@ location ^~ /<?php print $subdir; ?>/ {
index index.html index.htm;
### Do not reveal Aegir front-end URL here.
<?php else: ?>
rewrite ^ <?php print $this->platform->server->web_disable_url . '/' . $this->uri ?>? permanent;
rewrite ^ <?php print $this->platform->server->web_disable_url . '/' . $this->uri ?>? redirect;
<?php endif; ?>
}
......@@ -13,6 +13,6 @@ server {
index index.html index.htm;
### Do not reveal Aegir front-end URL here.
<?php else: ?>
rewrite ^ <?php print $this->platform->server->web_disable_url . '/' . $this->uri ?>? permanent;
rewrite ^ <?php print $this->platform->server->web_disable_url . '/' . $this->uri ?>? redirect;
<?php endif; ?>
}
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