Commit b51045a0 authored by omega8cc's avatar omega8cc

Nginx: Sanitize aliases in vhost_disabled.tpl.php to avoid: 'nginx: [warn]...

Nginx: Sanitize aliases in vhost_disabled.tpl.php to avoid: 'nginx: [warn] server name "foo.com/bar" has suspicious symbols'
parent bfb33ae4
......@@ -3,7 +3,7 @@
server {
listen <?php print "{$ip_address}:{$http_ssl_port}"; ?>;
server_name <?php print $this->uri . ' ' . implode(' ', $this->aliases); ?>;
server_name <?php print $this->uri . ' ' . implode(' ', str_replace('/', '.', $this->aliases)); ?>;
ssl on;
ssl_certificate <?php print $ssl_cert; ?>;
ssl_certificate_key <?php print $ssl_cert_key; ?>;
......
server {
listen *:<?php print $http_port; ?>;
server_name <?php print $this->uri . ' ' . implode(' ', $this->aliases); ?>;
server_name <?php print $this->uri . ' ' . implode(' ', str_replace('/', '.', $this->aliases)); ?>;
return 404;
### 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