nginx-profiles/image.silvrtree.co.uk
2016-06-29 11:48:51 +01:00

30 lines
517 B
Plaintext

server {
listen [::]:80;
listen 80;
# listen on both hosts
server_name image.silvrtree.co.uk;
# and redirect to the https host (declared below)
# avoiding http://www -> https://www -> https:// chain.
return 301 https://image.silvrtree.co.uk$request_uri;
}
server {
listen [::]:443 ssl spdy;
listen 443 ssl spdy;
server_name image.silvrtree.co.uk;
include secure/ssl.conf;
location / {
proxy_pass http://localhost:8080;
proxy_set_header Host $host;
}
}