Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3936126
D956.id2441.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
975 B
Referenced Files
None
Subscribers
None
D956.id2441.diff
View Options
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;
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 24, 10:27 (15 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2313322
Default Alt Text
D956.id2441.diff (975 B)
Attached To
Mode
D956: Simplify unknown domain nginx configuration
Attached
Detach File
Event Timeline
Log In to Comment