OLD | NEW |
(Empty) | |
| 1 server { |
| 2 listen 80 default_server; |
| 3 listen [::]:80 default_server; |
| 4 server_name '<%= vhost %>'; |
| 5 |
| 6 location / { |
| 7 rewrite (.*) https://<%= vhost %>$1 permanent; |
| 8 } |
| 9 } |
| 10 |
| 11 server { |
| 12 listen 443 ssl default_server; |
| 13 listen [::]:443 ssl default_server; |
| 14 ssl_certificate sites-available/adblockplus.org_sslcert.pem; |
| 15 ssl_certificate_key sites-available/adblockplus.org_sslcert.key; |
| 16 |
| 17 server_name '<%= vhost %>'; |
| 18 |
| 19 expires 1d; |
| 20 |
| 21 root /var/www/<%= vhost %>; |
| 22 index index; |
| 23 default_type text/html; |
| 24 } |
OLD | NEW |