OLD | NEW |
1 node 'web1' { | 1 node 'web1' { |
2 include statsclient | 2 include statsclient |
3 | 3 |
4 class {'web::server': | 4 class {'web::server': |
5 vhost => 'eyeo.com', | 5 vhost => 'eyeo.com', |
6 certificate => 'eyeo.com_sslcert.pem', | 6 certificate => 'eyeo.com_sslcert.pem', |
7 private_key => 'eyeo.com_sslcert.key', | 7 private_key => 'eyeo.com_sslcert.key', |
8 is_default => true, | 8 is_default => true, |
9 aliases => ['www.eyeo.com', 'eyeo.de', 'www.eyeo.de'], | 9 aliases => ['www.eyeo.com', 'eyeo.de', 'www.eyeo.de'], |
10 custom_config => ' | 10 custom_config => ' |
11 rewrite ^(/de)?/index\.html$ / permanent; | 11 rewrite ^(/de)?/index\.html$ / permanent; |
12 rewrite ^(/de)?/job\.html$ /jobs permanent; | 12 rewrite ^(/de)?/job\.html$ /jobs permanent; |
| 13 |
| 14 location ~ ^(/[^/]+/jobs)/ |
| 15 { |
| 16 error_page 404 $1/not-available; |
| 17 } |
13 ', | 18 ', |
14 repository => 'web.eyeo.com', | 19 repository => 'web.eyeo.com', |
15 multiplexer_locations => ['/formmail'], | 20 multiplexer_locations => ['/formmail'], |
16 } | 21 } |
17 | 22 |
18 concat::fragment {'formmail_template': | 23 concat::fragment {'formmail_template': |
19 target => '/etc/sitescripts.ini', | 24 target => '/etc/sitescripts.ini', |
20 content => '[DEFAULT] | 25 content => '[DEFAULT] |
21 mailer=/usr/sbin/sendmail | 26 mailer=/usr/sbin/sendmail |
22 [multiplexer] | 27 [multiplexer] |
23 sitescripts.formmail.web.formmail = | 28 sitescripts.formmail.web.formmail = |
24 [formmail] | 29 [formmail] |
25 template=formmail/template/eyeo.mail', | 30 template=formmail/template/eyeo.mail', |
26 } | 31 } |
27 } | 32 } |
28 | 33 |
29 node 'web2' { | 34 node 'web2' { |
30 include statsclient | 35 include statsclient |
31 | 36 |
32 class {'web::server': | 37 class {'web::server': |
33 vhost => 'beta.adblockplus.org', | 38 vhost => 'beta.adblockplus.org', |
34 certificate => 'beta.adblockplus.org_sslcert.pem', | 39 certificate => 'beta.adblockplus.org_sslcert.pem', |
35 private_key => 'beta.adblockplus.org_sslcert.key', | 40 private_key => 'beta.adblockplus.org_sslcert.key', |
36 is_default => true, | 41 is_default => true, |
37 repository => 'web.adblockplus.org', | 42 repository => 'web.adblockplus.org', |
38 # Hack: This server doesn't need multiplexer but it needs sitescripts | 43 # Hack: This server doesn't need multiplexer but it needs sitescripts |
39 multiplexer_locations => [], | 44 multiplexer_locations => [], |
40 } | 45 } |
41 } | 46 } |
OLD | NEW |