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
Previous revision
Next revision Both sides next revision
сервис_http [2021/09/21 16:38]
val [Управление доступом к HTTP серверу на основе Basic аутентификации]
сервис_http [2022/01/19 11:44]
val [Статический документ]
Line 33: Line 33:
     <META HTTP-EQUIV="​Content-Type"​ CONTENT="​text/​html;​charset=UTF-8">​     <META HTTP-EQUIV="​Content-Type"​ CONTENT="​text/​html;​charset=UTF-8">​
   </​HEAD>​   </​HEAD>​
-  <​BODY>​+  <​BODY ​text="​blue"​>
     <!--     <!--
       THis is comment       THis is comment
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