18 lines
532 B
Nginx Configuration File
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;
|
|
}
|
|
}
|