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/07/29 05:45] val [NGINX] |
сервис_http [2022/09/26 05:29] val [NGINX] |
||
---|---|---|---|
Line 893: | 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 | ||
+ | root@server.corp13.un:~# cat /var/opt/gitlab/nginx/conf/my.conf | ||
+ | server { | ||
+ | listen 80; | ||
+ | server_name webd.corpX.un; | ||
+ | |||
+ | location / { | ||
+ | proxy_pass http://192.168.49.2:30111/; | ||
+ | } | ||
+ | } | ||
+ | server { | ||
+ | listen 80; | ||
+ | server_name mail.corpX.un; | ||
+ | |||
+ | location / { | ||
+ | proxy_pass http://server.corpX.un:81/mail/; | ||
+ | } | ||
+ | } | ||
+ | </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> |