17 lines
328 B
Plaintext
17 lines
328 B
Plaintext
|
#######
|
||
|
### NGINX server configuration
|
||
|
### Redirect to secure connection
|
||
|
#######
|
||
|
|
||
|
server {
|
||
|
listen 80;
|
||
|
listen [::]:80;
|
||
|
|
||
|
server_name server.domain.tld
|
||
|
subdomain.server.domain.tld
|
||
|
subdomain2.server.domain.tld;
|
||
|
|
||
|
# redirect to properly formed HTTPS request
|
||
|
return 301 https://$host$request_uri;
|
||
|
}
|