Commit c196e1fc authored by omega8cc's avatar omega8cc

Nginx: proper sync with Apache redirects.

parent 01fb1027
...@@ -61,7 +61,8 @@ if ($this->redirection || $ssl_redirection) { ...@@ -61,7 +61,8 @@ if ($this->redirection || $ssl_redirection) {
print "\n rewrite ^ https://{$this->uri}\$request_uri? permanent;\n"; print "\n rewrite ^ https://{$this->uri}\$request_uri? permanent;\n";
} }
elseif (!$ssl_redirection && $this->redirection) { elseif (!$ssl_redirection && $this->redirection) {
print " include " . $server->include_path . "/nginx_vhost_common.conf;\n"; // Redirect all aliases to the main http url.
print " rewrite ^ http://{$this->redirection}\$request_uri? permanent;\n";
} }
} }
else { else {
......
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