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 [2022/01/19 11:44] val [Статический документ] |
сервис_http [2022/07/29 05:45] val [NGINX] |
||
---|---|---|---|
Line 37: | Line 37: | ||
THis is comment | THis is comment | ||
--> | --> | ||
+ | <PRE> | ||
+ | text | ||
+ | as | ||
+ | is | ||
+ | </PRE> | ||
<H1>Go to Google</H1> | <H1>Go to Google</H1> | ||
- | <A HREF=http://freebsd.org/> | + | <A HREF=https://freebsd.org/> |
- | <IMG SRC=http://www.freebsd.org/logo/logo-full.png> | + | <IMG SRC=https://www.freebsd.org/logo/logo-full.png> |
</A> | </A> | ||
</BODY> | </BODY> | ||
Line 106: | Line 111: | ||
</code> | </code> | ||
+ | ==== Изменение порта ==== | ||
+ | |||
+ | * [[https://www.tecmint.com/change-apache-port-in-linux/|How to Change Apache HTTP Port in Linux]] | ||
==== Свойство Indexes каталогов ==== | ==== Свойство Indexes каталогов ==== | ||
Line 553: | Line 561: | ||
# a2enmod rewrite | # a2enmod rewrite | ||
- | # service apache2 restart | + | # cat /etc/apache2/sites-available/000-default.conf |
- | + | ||
- | # cat /var/www/html/.htaccess | + | |
</code><code> | </code><code> | ||
- | RewriteEngine On | + | <VirtualHost *:80> |
- | RewriteCond %{HTTPS} !=on | + | ... |
- | RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] | + | RewriteEngine On |
+ | RewriteCond %{HTTPS} off | ||
+ | RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} | ||
+ | ... | ||
+ | </code><code> | ||
+ | # service apache2 restart | ||
</code> | </code> | ||
- | |||
==== FreeBSD ==== | ==== FreeBSD ==== | ||
<code> | <code> | ||
Line 855: | Line 865: | ||
# service nginx configtest | # service nginx configtest | ||
- | |||
# tail /var/log/nginx/error.log | # tail /var/log/nginx/error.log | ||
+ | |||
+ | или | ||
+ | |||
+ | # nginx -t -c /etc/nginx/nginx.conf | ||
+ | |||
# service nginx restart | # service nginx restart |