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

Side by Side Diff: modules/filterserver/files/easylist-downloads.adblockplus.org

Issue 10642004: Simplify filter download server configuration (Closed)
Patch Set: Created May 22, 2013, 8:16 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Default
2 server { 1 server {
3 listen 80; 2 listen 80 default_server;
4 listen [::]:80; 3 listen [::]:80 default_server;
5 listen 443 ssl; 4 listen 443 ssl default_server;
6 listen [::]:443 ssl; 5 listen [::]:443 ssl default_server;
6
7 server_name easylist-downloads.adblockplus.org easylist-msie.adblockplus.org;
8 access_log /var/log/nginx/access_log_easylist_downloads main;
9 root /var/www/easylist;
10 keepalive_timeout 0;
11 charset utf-8;
12 gzip_static on;
13 default_type text/plain;
14
7 ssl_certificate sites-available/easylist-downloads.adblockplus.org_sslcert.pem ; 15 ssl_certificate sites-available/easylist-downloads.adblockplus.org_sslcert.pem ;
8 ssl_certificate_key sites-available/easylist-downloads.adblockplus.org_sslcert .key; 16 ssl_certificate_key sites-available/easylist-downloads.adblockplus.org_sslcert .key;
9 location / { 17
10 rewrite (.*) $scheme://adblockplus.org$1 permanent; 18 set $id "$scheme:$http_host";
19 if ($id = "http:easylist-downloads.adblockplus.org") {
20 rewrite (.*) https://$http_host$1 permanent;
21 }
22
23 error_page 403 404 https://easylist.adblockplus.org/;
24
25 # redirect server error pages to the static page /50x.html
26 #
27 error_page 500 502 503 504 /50x.html;
28 location = /50x.html {
29 root html;
11 } 30 }
12 } 31 }
13 # easylist-downloads.adblockplus.org
14 server {
15 listen 80;
16 listen [::]:80;
17 server_name easylist-downloads.adblockplus.org;
18 location / {
19 rewrite (.*) https://easylist-downloads.adblockplus.org$1 permanent;
20 }
21 }
22 server {
23 listen 443 ssl;
24 listen [::]:443 ssl;
25 server_name easylist-downloads.adblockplus.org;
26 ssl_certificate sites-available/easylist-downloads.adblockplus.org_sslcert.pem ;
27 ssl_certificate_key sites-available/easylist-downloads.adblockplus.org_sslcert .key;
28 include "sites-available/inc.easylist-downloads";
29 }
30 server {
31 listen 80;
32 listen [::]:80;
33 server_name easylist-msie.adblockplus.org;
34 include "sites-available/inc.easylist-downloads";
35 }
OLDNEW
« no previous file with comments | « modules/downloadserver/files/downloads.adblockplus.org ('k') | modules/filterserver/files/inc.easylist-downloads » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld