nginx/conf.d/http.conf
PIVODEVAT d785ca8840 init
2025-02-02 03:27:12 +03:00

14 lines
296 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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