nginx-basic/etc/nginx/availableSites/redirectHTTPS.conf

19 lines
369 B
Plaintext
Raw Permalink Normal View History

#######
### 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
2019-01-04 03:24:14 -07:00
include /etc/nginx/snippets/error_pages.conf;
}