Commit e4dab7bc authored by omega8cc's avatar omega8cc

Nginx: Fix aliases in redirects on the fly.

parent f4e40989
......@@ -10,8 +10,10 @@ if ($ssl_redirection || $this->redirection) {
// target to be the original site URL ($this->uri instead of
// $alias_url)
if ($this->redirection && $alias_url == $this->redirection) {
$this->uri = str_replace('/', '.', $this->uri);
print " server_name {$this->uri};\n";
} else {
$alias_url = str_replace('/', '.', $alias_url);
print " server_name {$alias_url};\n";
}
print " access_log off;\n";
......
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