Download:
child 7:cd553541bd68
parent 5:5c3d359316e0
6:7cc6e8563947
Anton Shestakov <av6@dwimlabs.net>, Sat, 25 Jun 2016 12:27:42 +0800
use $host variable for the 301 redirect for flexibility

1 файлов изменено, 1 вставок(+), 1 удалений(-) [+]
roles/nginx/templates/etc/nginx/sites-available/munin file | annotate | diff | comparison | revisions
--- a/roles/nginx/templates/etc/nginx/sites-available/munin Sat Jun 25 12:27:03 2016 +0800
+++ b/roles/nginx/templates/etc/nginx/sites-available/munin Sat Jun 25 12:27:42 2016 +0800
@@ -7,7 +7,7 @@
access_log /var/log/nginx/munin.{{ hostname }}.access.log;
error_log /var/log/nginx/munin.{{ hostname }}.error.log;
- return 301 https://munin.{{ hostname }}$request_uri;
+ return 301 https://$host$request_uri;
}
server {