Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I set this up inside the domain on the path? #114

Open
morrisae opened this issue Oct 11, 2024 · 5 comments
Open

How do I set this up inside the domain on the path? #114

morrisae opened this issue Oct 11, 2024 · 5 comments

Comments

@morrisae
Copy link

morrisae commented Oct 11, 2024

How do I set this up inside the domain on the path? Is it possible?

Example: "example.com/databag" instead of "databag.example.com".

@balzack
Copy link
Owner

balzack commented Oct 29, 2024

Sorry for the late response. I rely on my email for notifications, and have been getting lots of spam...

I was able to get this working with nginx_proxy_manager. In 'custom locations', I added a path, and then added this block:

location /<path> {
  proxy_pass http://<internal ip>:<internal port>/;
}

@morrisae
Copy link
Author

Please share screenshots of the configuration nginx_proxy_manager

@balzack
Copy link
Owner

balzack commented Oct 29, 2024

Here I tested with the path '/db':

Screenshot 2024-10-29 at 12 57 32 PM

@morrisae
Copy link
Author

It doesn't work for me. he visits the site, but does not load anything because he tries to read files from the root path
I did everything as in the screenshot and tried with nginx overwrites, it does not always request files from the root path

@balzack
Copy link
Owner

balzack commented Oct 29, 2024

Hmm, perhaps I misunderstood your question.

I think the above config allows for a container to be reached at a specified host/path.

Alternatively, the app server can add a path prefix and still respond to the same hostname. This wouldn't allow for a different path prefix to be used by another app server, so I think I still misunderstand.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants