mirror of
https://gitlab.silvrtree.co.uk/martind2000/nginx-profiles.git
synced 2025-01-25 16:16:17 +00:00
30 lines
517 B
Plaintext
30 lines
517 B
Plaintext
server {
|
|
listen [::]:80;
|
|
listen 80;
|
|
|
|
# listen on both hosts
|
|
server_name pipes.silvrtree.co.uk;
|
|
|
|
# and redirect to the https host (declared below)
|
|
# avoiding http://www -> https://www -> https:// chain.
|
|
return 301 https://pipes.silvrtree.co.uk$request_uri;
|
|
}
|
|
|
|
server {
|
|
listen [::]:443 ssl spdy;
|
|
listen 443 ssl spdy;
|
|
|
|
server_name pipes.silvrtree.co.uk;
|
|
|
|
include secure/ssl.conf;
|
|
|
|
location / {
|
|
proxy_pass http://localhost:9002;
|
|
proxy_set_header Host $host;
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|