nginx/conf.d/http.conf

14 lines
296 B
Plaintext
Raw Normal View History

2025-02-02 03:27:12 +03:00
server {
listen 80;
server_name root-kit.ru;
# Prevent nginx HTTP Server Detection
server_tokens off;
# Редирект с HTTP на HTTPS
#return 301 https://$host$request_uri;
location / {
rewrite ^ https://$http_host$request_uri? permanent; # force redirect http to https
}
}