Unfortunately, nginx does not support subdomains on such IP addresses.
You will need to either modify the client hosts file (which, as you said, you do not want to do) ...
Or you can simply configure nginx to redirect like this:
location /jenkins { proxy_pass http://jenkins:8080; ... } location /other-container { proxy_pass http://other-container:8080; }
which will allow you to access jenkins in 192.168.1.2/jenkins
Or you can try and serve different containers through different ports. For instance:
server { listen 8081; location / { proxy_pass http://jenkins:8080; ... } } server { listen 8082; location / { proxy_pass http://other-container:8080; ... } }
And then login to jenkins from 192.168.1.2:8081/
source share