我有两个要从不同URI访问的Docker容器,但是nginx仅在“ /”处提供该容器。
worker_processes 1;
events { worker_connections 1024; }
http {
server {
listen 80;
location ^~ /control-panel/ {
proxy_pass http://control-panel:80/;
}
location / {
proxy_pass http://web:80/;
}
}
}