vps/nginx/sites-enabled/default.conf

18 lines
283 B
Text
Raw Normal View History

2024-10-15 21:44:02 +02:00
# 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;
}