Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: manifests/webserver.pp

Issue 5727102489853952: Issue 2131 - Setup custom 404 page for job pages (Closed)
Patch Set: Created March 24, 2015, 11:06 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: manifests/webserver.pp
===================================================================
--- a/manifests/webserver.pp
+++ b/manifests/webserver.pp
@@ -10,6 +10,11 @@
custom_config => '
rewrite ^(/de)?/index\.html$ / permanent;
rewrite ^(/de)?/job\.html$ /jobs permanent;
+
+ location ~ ^(/[^/]+/jobs)/
+ {
+ error_page 404 $1/not-available;
+ }
',
repository => 'web.eyeo.com',
multiplexer_locations => ['/formmail'],
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld