14 lines
296 B
Plaintext
14 lines
296 B
Plaintext
![]() |
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
|
|||
|
}
|
|||
|
}
|