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 [2023/01/22 07:02] val [Прокси "красивого" URL в приложение (пример 3)] |
сервис_http [2023/03/20 09:00] val [Прокси "красивого" URL в приложение (пример 3)] |
||
---|---|---|---|
Line 934: | Line 934: | ||
<code> | <code> | ||
# host mail | # host mail | ||
- | mail.corpX.un is an alias for server.corpX.un. | ||
- | server.corpX.un has address 192.168.X.10 | ||
- | |||
# host webd | # host webd | ||
- | webd.corpX.un has address 192.168.X.10 | + | # host www |
+ | # host autoconfig | ||
+ | # host corpX.un | ||
+ | ... has address 192.168.X.10 | ||
root@server# cat /var/opt/gitlab/nginx/conf/corpX.conf | root@server# cat /var/opt/gitlab/nginx/conf/corpX.conf | ||
Line 956: | Line 956: | ||
location / { | location / { | ||
proxy_pass http://server.corpX.un:81/mail/; | proxy_pass http://server.corpX.un:81/mail/; | ||
+ | # proxy_pass http://gate.corpX.un:81/mail/; | ||
} | } | ||
} | } | ||
Line 966: | Line 967: | ||
} | } | ||
} | } | ||
+ | # server { | ||
+ | # listen 80; | ||
+ | # server_name autoconfig.corpX.un; | ||
+ | # location / { | ||
+ | # proxy_pass http://gate.corpX.un:81/; | ||
+ | # } | ||
+ | # } | ||
</code><code> | </code><code> | ||
root@server# cat /var/opt/gitlab/nginx/conf/nginx.conf | root@server# cat /var/opt/gitlab/nginx/conf/nginx.conf |