simple test for docker network using reverse proxy
This commit is contained in:
23
nginx.conf
Normal file
23
nginx.conf
Normal file
@@ -0,0 +1,23 @@
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
|
||||
root /var/www/html;
|
||||
|
||||
index index.html index.htm;
|
||||
|
||||
server_name _;
|
||||
|
||||
location /alpha {
|
||||
proxy_pass http://nginx_alpha/index.html;
|
||||
}
|
||||
|
||||
location /bravo {
|
||||
proxy_pass http://nginx_bravo/index.html;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user