User Tools

Site Tools


сервис_http

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
сервис_http [2023/01/08 07:01]
val [Поддержка протокола HTTPS]
сервис_http [2023/01/22 07:02]
val [Прокси "красивого" URL в приложение (пример 3)]
Line 940: Line 940:
 webd.corpX.un has address 192.168.X.10 webd.corpX.un has address 192.168.X.10
  
-root@server#​ cat /​var/​opt/​gitlab/​nginx/​conf/​my.conf+root@server#​ cat /​var/​opt/​gitlab/​nginx/​conf/​corpX.conf
 </​code><​code>​ </​code><​code>​
     server {     server {
Line 956: Line 956:
         location / {         location / {
             proxy_pass http://​server.corpX.un:​81/​mail/;​             proxy_pass http://​server.corpX.un:​81/​mail/;​
 +        }
 +    }
 +    server {
 +        listen 80;
 +        server_name corpX.un www.corpX.un;​
 +
 +        location / {
 +            proxy_pass http://​server.corpX.un:​81/;​
         }         }
     }     }
Line 962: Line 970:
 </​code><​code>​ </​code><​code>​
 ... ...
-  include /​var/​opt/​gitlab/​nginx/​conf/​my.conf;+  include /​var/​opt/​gitlab/​nginx/​conf/​corpX.conf;
 } }
 </​code><​code>​ </​code><​code>​
сервис_http.txt · Last modified: 2024/05/24 09:20 by val