nginx-basic/availableSites/redirectHTTPS.conf

17 lines
328 B
Plaintext
Raw Normal View History

#######
### 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;
}