19 lines
369 B
Plaintext
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;
|
|
}
|