Page MenuHomeDevCentral

D956.id2438.diff
No OneTemporary

D956.id2438.diff

diff --git a/roles/shellserver/web-hosting/files/eglide/nginx/vhosts/000.conf b/roles/shellserver/web-hosting/files/eglide/nginx/vhosts/000.conf
--- a/roles/shellserver/web-hosting/files/eglide/nginx/vhosts/000.conf
+++ b/roles/shellserver/web-hosting/files/eglide/nginx/vhosts/000.conf
@@ -24,18 +24,17 @@
listen [2001:470:1f12:9e1::2]:80;
listen [2001:470:1f13:9e1:0:c0ff:ee:1]:80;
server_name _;
- root /var/wwwroot/unknown_domains;
access_log /var/log/www/unknown_domains-access.log main;
error_log /var/log/www/unknown_domains-error.log;
- error_page 404 @unknowndomains;
-
location / {
return 404;
}
- location @unknowndomains {
- rewrite ^(.*)$ /unknown.html break;
+ error_page 404 /unknown.html;
+
+ location = /unknown.html {
+ root /var/wwwroot/unknown_domains;
}
}
diff --git a/roles/shellserver/web-hosting/init.sls b/roles/shellserver/web-hosting/init.sls
--- a/roles/shellserver/web-hosting/init.sls
+++ b/roles/shellserver/web-hosting/init.sls
@@ -22,14 +22,10 @@
- clean: False
- dir_mode: 755
- file_mode: 644
- - cmd.run:
- - name: nginx -s reload
- - onchanges:
- {% if grains['os'] == 'FreeBSD' %}
- - file: /usr/local/etc/nginx/nginx.conf
- {% else %}
- - file: /etc/nginx/nginx.conf
- {% endif %}
+ cmd.run:
+ - name: nginx -s reload
+ - onchanges:
+ - file: nginx_config_files
# -------------------------------------------------------------
# Nginx logs

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 24, 10:19 (14 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2313904
Default Alt Text
D956.id2438.diff (1 KB)

Event Timeline