DAS_2023_1/antonov_dmitry_lab_3/nginx/nginx.conf
2023-12-04 18:24:11 +04:00

18 lines
532 B
Nginx Configuration File

server {
listen 80;
location /app1/ {
proxy_pass http://localhost:5000/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
location /app2/ {
proxy_pass http://localhost:5001/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}