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

Side by Side Diff: modules/filterserver/files/site.conf

Issue 5734493784637440: Issue 245 - Unify SSL configuration for all servers (Closed)
Patch Set: Created April 2, 2014, 2:05 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
OLDNEW
1 server { 1 root /var/www/easylist;
2 <% if is_default %> 2 keepalive_timeout 0;
3 listen 80 default_server; 3 charset utf-8;
4 listen [::]:80 default_server; 4 gzip_static on;
5 listen 443 ssl default_server; 5 default_type text/plain;
6 listen [::]:443 ssl default_server;
7 <% else %>
8 listen 80;
9 listen [::]:80;
10 listen 443 ssl;
11 listen [::]:443 ssl;
12 <% end %>
13 6
14 server_name easylist-downloads.adblockplus.org easylist-msie.adblockplus.org; 7 error_page 403 404 https://easylist.adblockplus.org/;
15 access_log /var/log/nginx/access_log_easylist_downloads main;
16 root /var/www/easylist;
17 keepalive_timeout 0;
18 charset utf-8;
19 gzip_static on;
20 default_type text/plain;
21 8
22 ssl_certificate sites-available/easylist-downloads.adblockplus.org_sslcert.pem ; 9 # redirect server error pages to the static page /50x.html
23 ssl_certificate_key sites-available/easylist-downloads.adblockplus.org_sslcert .key; 10 #
24 11 error_page 500 502 503 504 /50x.html;
25 set $id "$scheme:$http_host"; 12 location = /50x.html {
26 if ($id = "http:easylist-downloads.adblockplus.org") { 13 root html;
27 rewrite (.*) https://$http_host$1 permanent;
28 }
29
30 error_page 403 404 https://easylist.adblockplus.org/;
31
32 # redirect server error pages to the static page /50x.html
33 #
34 error_page 500 502 503 504 /50x.html;
35 location = /50x.html {
36 root html;
37 }
38 } 14 }
OLDNEW

Powered by Google App Engine
This is Rietveld