User Tools

Site Tools


сервис_http

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
сервис_http [2021/09/21 16:38]
val [Управление доступом к HTTP серверу на основе Basic аутентификации]
сервис_http [2021/09/21 16:46]
val [Debian/Ubuntu]
Line 547: Line 547:
  
 # service apache2 restart # service apache2 restart
 +</​code>​
 +
 +==== Редирект HTTP на HTTPS ====
 +<​code>​
 +# a2enmod rewrite
 +
 +# service apache2 restart
 +
 +# cat /​var/​www/​html/​.htaccess
 +</​code><​code>​
 +RewriteEngine On
 +RewriteCond %{HTTPS} !=on
 +RewriteRule ^/?(.*) https://​%{SERVER_NAME}/​$1 [R,L]
 </​code>​ </​code>​
  
сервис_http.txt · Last modified: 2024/05/15 11:08 by val