nginx-basic/etc/nginx/availableSites/redirectHTTPS.conf
2019-01-04 03:24:14 -07:00

19 lines
369 B
Plaintext

#######
### NGINX server configuration
### Redirect to secure connection
#######
server {
listen 80;
listen [::]:80;
# specify server name(s)
include /etc/nginx/snippets/server_names.conf;
# redirect to properly formed HTTPS request
return 301 https://$host$request_uri;
# error pages
include /etc/nginx/snippets/error_pages.conf;
}