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 13:20] val [Редирект HTTP на HTTPS] |
сервис_http [2022/09/25 20:13] 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 857: | 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 | ||
Line 881: | Line 893: | ||
</code><code> | </code><code> | ||
# ln -s /etc/nginx/sites-available/myapp1 /etc/nginx/sites-enabled/myapp1 | # ln -s /etc/nginx/sites-available/myapp1 /etc/nginx/sites-enabled/myapp1 | ||
+ | </code><code> | ||
+ | root@server# cat /var/opt/gitlab/nginx/conf/my.conf | ||
+ | server { | ||
+ | listen 80; | ||
+ | server_name webd.corp13.un; | ||
+ | |||
+ | location / { | ||
+ | proxy_pass http://192.168.49.2:30111; | ||
+ | } | ||
+ | } | ||
+ | </code><code> | ||
+ | root@server# cat /var/opt/gitlab/nginx/conf/nginx.conf | ||
+ | </code><code> | ||
+ | ... | ||
+ | include /var/opt/gitlab/nginx/conf/my.conf; | ||
+ | } | ||
+ | </code><code> | ||
+ | root@server# /opt/gitlab/embedded/sbin/nginx -p /var/opt/gitlab/nginx -t | ||
+ | </code><code> | ||
+ | root@server# gitlab-ctl restart nginx | ||
</code> | </code> |