18 lines
283 B
Text
18 lines
283 B
Text
|
# Redirect HTTP to HTTPS
|
||
|
server {
|
||
|
listen 80 default_server;
|
||
|
listen [::]:80 default_server;
|
||
|
|
||
|
return 308 https://$host$request_uri;
|
||
|
}
|
||
|
|
||
|
# Default HTTPS server
|
||
|
server {
|
||
|
listen 443 ssl default_server;
|
||
|
listen [::]:443 ssl default_server;
|
||
|
|
||
|
http2 on;
|
||
|
|
||
|
return 404;
|
||
|
}
|