Left: | ||
Right: |
LEFT | RIGHT |
---|---|
1 server { | |
2 listen 80; | |
3 server_name _; | |
4 return 301 https://$host$request_uri; | |
5 } | |
6 | |
1 server { | 7 server { |
gary.poster
2012/12/19 03:55:52
As we discussed, please add a redirect from port 8
teknico
2012/12/19 11:54:38
Done.
| |
2 listen 443 default_server ssl; | 8 listen 443 default_server ssl; |
3 server_name _; | 9 server_name _; |
4 root %(server_root)s; | 10 root %(server_root)s; |
5 index index.html; | 11 index index.html; |
6 ssl_certificate /etc/ssl/private/juju-gui/server.pem | 12 ssl_certificate /etc/ssl/private/juju-gui/server.pem; |
gary.poster
2012/12/19 03:55:52
You need to terminate this with a semicolon.
teknico
2012/12/19 11:54:38
Done.
| |
7 ssl_certificate_key /etc/ssl/private/juju-gui/server.key | 13 ssl_certificate_key /etc/ssl/private/juju-gui/server.key; |
gary.poster
2012/12/19 03:55:52
This one needs a semicolon too.
teknico
2012/12/19 11:54:38
Done.
| |
8 | 14 |
9 # Serve static assets. | 15 # Serve static assets. |
10 location ^~ /juju-ui/ { | 16 location ^~ /juju-ui/ { |
11 root %(server_root)s; | 17 root %(server_root)s; |
12 } | 18 } |
13 location = /favicon.ico { | 19 location = /favicon.ico { |
14 expires 10d; | 20 expires 10d; |
15 root %(server_root)s; | 21 root %(server_root)s; |
16 } | 22 } |
17 location = /index.html { | 23 location = /index.html { |
18 root %(server_root)s; | 24 root %(server_root)s; |
19 } | 25 } |
20 | 26 |
21 # Fall through to the single-page app for all other URLs. | 27 # Fall through to the single-page app for all other URLs. |
22 location ~ / { | 28 location ~ / { |
23 rewrite .* /index.html last; | 29 rewrite .* /index.html last; |
24 } | 30 } |
25 } | 31 } |
LEFT | RIGHT |