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

Side by Side Diff: modules/notificationserver/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 # notification.adblockplus.org 1 # redirect server error pages to the static page /50x.html
2 server { 2 #
3 <% if is_default %> 3 error_page 500 502 503 504 /50x.html;
Felix Dahlke 2014/04/09 18:13:25 While we're at it, can we normalise white space he
4 listen 80 default_server; 4 location = /50x.html {
5 listen [::]:80 default_server; 5 root html;
6 <% else %> 6 }
7 listen 80;
8 listen [::]:80;
9 <% end %>
10 7
11 server_name notification.adblockplus.org; 8 location /.hg {
12 location / { 9 internal;
13 rewrite (.*) https://notification.adblockplus.org$1 permanent;
14 }
15 } 10 }
16 server {
17 <% if is_default %>
18 listen 443 ssl default_server;
19 listen [::]:443 ssl default_server;
20 <% else %>
21 listen 443 ssl;
22 listen [::]:443 ssl;
23 <% end %>
24 11
25 server_name notification.adblockplus.org; 12 keepalive_timeout 0;
26 ssl_certificate sites-available/adblockplus.org_sslcert.pem; 13 root /var/www/notification;
27 ssl_certificate_key sites-available/adblockplus.org_sslcert.key;
28
29 # redirect server error pages to the static page /50x.html
30 #
31 error_page 500 502 503 504 /50x.html;
32 location = /50x.html {
33 root html;
34 }
35
36 location /.hg {
37 internal;
38 }
39
40 access_log /var/log/nginx/access_log_notification main;
41 keepalive_timeout 0;
42 root /var/www/notification;
43 }
OLDNEW

Powered by Google App Engine
This is Rietveld