2019-01-04 02:36:58 -07:00
|
|
|
#######
|
|
|
|
### NGINX server configuration
|
|
|
|
### Redirect to secure connection
|
|
|
|
#######
|
|
|
|
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
|
|
|
|
2019-01-04 02:50:07 -07:00
|
|
|
# specify server name(s)
|
|
|
|
include /etc/nginx/snippets/server_names.conf;
|
2019-01-04 02:36:58 -07:00
|
|
|
|
|
|
|
# redirect to properly formed HTTPS request
|
|
|
|
return 301 https://$host$request_uri;
|
2019-01-04 03:00:07 -07:00
|
|
|
|
|
|
|
# error pages
|
2019-01-04 03:24:14 -07:00
|
|
|
include /etc/nginx/snippets/error_pages.conf;
|
2019-01-04 02:36:58 -07:00
|
|
|
}
|