This shows you the differences between two versions of the page.
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 [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> | ||
Line 643: | Line 656: | ||
</code><code> | </code><code> | ||
... | ... | ||
- | <Directory /var/www/html/asterisk> | + | <Directory /var/www/html/phoneconf> |
# AllowOverride AuthConfig | # AllowOverride AuthConfig | ||