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 [2020/12/24 14:23]
val [Debian/Ubuntu]
сервис_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>​
  
Line 643: Line 656:
 </​code><​code>​ </​code><​code>​
 ... ...
-        <​Directory /​var/​www/​html/​asterisk>+        <​Directory /​var/​www/​html/​phoneconf>
 #            AllowOverride AuthConfig #            AllowOverride AuthConfig
  
сервис_http.txt · Last modified: 2024/05/24 09:20 by val