Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I am totally new to this proxy stuff so bear with me and may not be using the right terminology
We have setup a proxy to our ec2 instance where we have a few dokku/docker containers that are hosting a few apps. the url for those apps are: http://foo.dokku.abc.domain.com http://bar.dokku.abc.domain.com
We would like to be able to have users only type: http://foo.abc.domain.com http://bar.abc.domain.com
we’ve setup a rewrite for the above urls which works fine. http://foo.abc.domain.com -> http://foo.dokku.abc.domain.com http://bar.abc.domain.com -> http://bar.dokku.abc.domain.com
however we would like it to not actually rewrite the url, we’d like it to preserve the url in the browser.
What can we do to fix this?
thanks
below is the code in /etc/nginx/sites-available/default
server {
listen 80 ;
server_name .dokku.abc.domain.com;
location / {
proxy_pass http://ip-aaa-bbb-ccc-ddd.us-west-1.compute.internal:80;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
server {
listen 80 ;
server_name foo.abc.domain.com;
rewrite ^(.*) http://foo.dokku.abc.domain.com;
}
server {
listen 80 ;
server_name bar.abc.domain.com;
rewrite ^(.*) http://bar.dokku.abc.domain.com;
}
lwmeozrcbh
d1dd3d9538cc4d06b53e6d1d338d3f
50ff4e4b3c6c4999a12403b1ecda95
a6309a057c3f4cb38fb2e7feb67236
72e571841e7f4a6881090a2f3e93c0
7ce6bf277bff4d429ba493dd750e35
57a72a98162f46a5a5cd04d9b
Thomas Brocken
11575c6d695643cdb40ad47d0f1aea
tez.saad