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: Converted Nagios site configuration and centralized error page configuration Created April 10, 2014, 6:40 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
« no previous file with comments | « modules/filterserver/files/logrotate ('k') | modules/filterserver/manifests/init.pp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
22 ssl_certificate sites-available/easylist-downloads.adblockplus.org_sslcert.pem ;
23 ssl_certificate_key sites-available/easylist-downloads.adblockplus.org_sslcert .key;
24
25 set $id "$scheme:$http_host";
26 if ($id = "http:easylist-downloads.adblockplus.org") {
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 }
OLDNEW
« no previous file with comments | « modules/filterserver/files/logrotate ('k') | modules/filterserver/manifests/init.pp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld