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

Side by Side Diff: hiera/roles/web/adblockbrowser.yaml

Issue 29793587: #11421 - Redirect broken links on adblockbrowser.org (Closed)
Patch Set: Created May 29, 2018, 10:31 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 classes: 1 classes:
2 adblockplus::web::mimeo: 2 adblockplus::web::mimeo:
3 format: $remote_addr - - [$time_local] "$request" $status $bytes_sent "$http _referer" "$http_user_agent" "$http_x_forwarded_for" - "$http_accept_language" " $http_host" "$http_x_client_id" $http_content_length "$http_content_type" $reque st_body 3 format: $remote_addr - - [$time_local] "$request" $status $bytes_sent "$http _referer" "$http_user_agent" "$http_x_forwarded_for" - "$http_accept_language" " $http_host" "$http_x_client_id" $http_content_length "$http_content_type" $reque st_body
4 response: All good, carry on! 4 response: All good, carry on!
5 port: 8000 5 port: 8000
6 web::server: 6 web::server:
7 vhost: adblockbrowser.org 7 vhost: adblockbrowser.org
8 aliases: 8 aliases:
9 - www.adblockbrowser.org 9 - www.adblockbrowser.org
10 is_default: true 10 is_default: true
11 custom_config: | 11 custom_config: |
12 rewrite ^/android-support/faq/?$ https://adblockplus.org/forum/viewforum.p hp?f=15 permanent;
13 rewrite ^/android-support/?$ https://adblockplus.org/forum/viewforum.php?f =15 permanent;
14 rewrite ^/android-support/privacy-options/?$ https://adblockplus.org/forum /viewforum.php?f=15 permanent;
15 rewrite ^/android-support/acceptable-ads-config/?$ https://adblockplus.org /forum/viewforum.php?f=15 permanent;
16 rewrite ^/ios-support/?$ https://adblockplus.org/forum/viewforum.php?f=26 permanent;
17 rewrite ^/es-ES/?$ https://adblockbrowser.org/es/ permanent;
18 rewrite ^/android-support/install/?$ https://adblockplus.org/forum/viewfor um.php?f=15 permanent;
19 rewrite ^/ios-support/additional-filter-lists/?$ https://adblockplus.org/f orum/viewforum.php?f=26 permanent;
20 rewrite ^/android-support/customizing-abb/?$ https://adblockplus.org/forum /viewforum.php?f=15 permanent;
21 rewrite ^/android-support/adding-filter-list/?$ https://adblockplus.org/fo rum/viewforum.php?f=15 permanent;
22 rewrite ^/android-support/changing-language https://adblockplus.org/forum/ viewforum.php?f=15 permanent;
23 rewrite ^/ios-support/changing-search-engine/?$ https://adblockplus.org/fo rum/viewforum.php?f=26 permanent;
24 rewrite ^/ios-support/view-whitelisted-websites/?$ https://adblockplus.org /forum/viewforum.php?f=26 permanent;
25 rewrite ^/ios-support/adding-filter-list/?$ https://adblockplus.org/forum/ viewforum.php?f=26 permanent;
26 rewrite ^/ios-support/disable-search-suggestions/?$ https://adblockplus.or g/forum/viewforum.php?f=26 permanent;
27 rewrite ^/ios-support/acceptable-ads-config/?$ https://adblockplus.org/for um/viewforum.php?f=26 permanent;
28 rewrite ^/zh-CN/?$ https://adblockbrowser.org/zh_CN/ permanent;
29 rewrite ^/android-support/removing-filter-list/?$ https://adblockplus.org/ forum/viewforum.php?f=15 permanent;
30 rewrite ^/ios-support/install/?$ https://adblockplus.org/forum/viewforum.p hp?f=26 permanent;
31 rewrite ^/android-support/display-options/?^ https://adblockplus.org/forum /viewforum.php?f=15 permanent;
32 rewrite ^/blog/?$ https://adblockplus.org/blog/ permanent;
33 rewrite ^/zh-CN/android-support/customizing-abb/?$ https://adblockplus.org /forum/viewforum.php?f=15 permanent;
34 rewrite ^/pt-BR/android-support/acceptable-ads-config/?$ https://adblockpl us.org/forum/viewforum.php?f=15 permanent;
35 rewrite ^/es-ES/android-support/changing-language/?$ https://adblockplus.o rg/forum/viewforum.php?f=15 permanent;
36 rewrite ^/es-ES/android-support/removing-filter-list/?$ https://adblockplu s.org/forum/viewforum.php?f=15 permanent;
37 rewrite ^/index.html https://adblockbrowser.org/ permanent;
38 rewrite ^/ios-support/?$ https://adblockplus.org/forum/viewforum.php?f=26 permanent;
39 rewrite ^/android/? https://adblockplus.org/forum/viewforum.php?f=15 perma nent;
40 rewrite ^/zh-CN/android-support/?$ https://adblockplus.org/forum/viewforum .php?f=15 permanent;
41 rewrite ^/pt-PT/android-support/?$ https://adblockplus.org/forum/viewforum .php?f=15 permanent;
42 rewrite ^/ios-support/removing-filter-list/?$ https://adblockplus.org/foru m/viewforum.php?f=26 permanent;
43 rewrite ^/zh-CN/android-support/adding-filter-list/?$ https://adblockplus. org/forum/viewforum.php?f=15 permanent;
44 rewrite ^/zh-TW/ios-support/install/?$ https://adblockplus.org/forum/viewf orum.php?f=26 permanent;
45 location /forum/viewforum {
mathias 2018/05/30 07:45:28 Can't we just re-write all /forum/viewforum and /f
f.lopez 2018/05/30 19:03:41 Yes we can, I did it this way to make it as verbos
46 if ($arg_f = "22")
47 {
48 rewrite ^(.*)/?$ https://adblockplus.org/forum/viewforum.php permanent ;
49 }
50 }
51 location /forum/viewtopic {
52 set $arguments $arg_f/$arg_t/$arg_start;
53 if ($arguments = "2/40190/")
54 {
55 rewrite ^(.*) https://adblockplus.org/forum/viewtopic.php permanent;
56 }
57 if ($arguments = "2/36849/")
58 {
59 rewrite ^(.*) https://adblockplus.org/forum/viewtopic.php permanent;
60 }
61 if ($arguments = "1/23617/")
62 {
63 rewrite ^(.*) https://adblockplus.org/forum/viewtopic.php permanent;
64 }
65 if ($arguments = "9/40312/")
66 {
67 rewrite ^(.*) https://adblockplus.org/forum/viewtopic.php permanent;
68 }
69 if ($arguments = "18/21550/15")
70 {
71 rewrite ^(.*) https://adblockplus.org/forum/viewtopic.php permanent;
72 }
73 }
12 location /submit-feedback { 74 location /submit-feedback {
13 proxy_pass http://127.0.0.1:8000; 75 proxy_pass http://127.0.0.1:8000;
14 proxy_set_header User-Agent $http_user_agent; 76 proxy_set_header User-Agent $http_user_agent;
15 proxy_set_header Referer $http_referer; 77 proxy_set_header Referer $http_referer;
16 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 78 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
17 proxy_set_header Accept-Language $http_accept_language; 79 proxy_set_header Accept-Language $http_accept_language;
18 proxy_set_header Host $http_host; 80 proxy_set_header Host $http_host;
19 proxy_set_header X-Client-Id $http_x_client_id; 81 proxy_set_header X-Client-Id $http_x_client_id;
20 } 82 }
21 location /badadssuck { 83 location /badadssuck {
(...skipping 22 matching lines...) Expand all
44 sitescripts::configfragments: 106 sitescripts::configfragments:
45 installation_link: 107 installation_link:
46 content: | 108 content: |
47 [DEFAULT] 109 [DEFAULT]
48 mailer=/usr/sbin/sendmail 110 mailer=/usr/sbin/sendmail
49 [multiplexer] 111 [multiplexer]
50 sitescripts.send_installation_link.web.send_installation_link = 112 sitescripts.send_installation_link.web.send_installation_link =
51 [send_installation_link] 113 [send_installation_link]
52 email_template=send_installation_link/template/adblockbrowser_installation _link.tmpl 114 email_template=send_installation_link/template/adblockbrowser_installation _link.tmpl
53 115
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld