nginx-basic/availableSites/redirectHTTPS.conf
2019-01-04 02:36:58 -07:00

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