-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Default WWW directory #485
Comments
Are you trying to host a static site? If so, I don't think it's supported with this (see #280). The way that I solved it was to create a docker container from the standard nginx and then make a proxy host in nginx-proxy-manager. It's inefficient to be having multiple nginx instances running but I think this may be the only way to do it until they decide to enable that feature. Scroll down to "Hosting some simple static content": https://hub.docker.com/_/nginx |
Thanks for the response. In the end, that's what I ended up doing. I was originally using another docker that does everything NPM does, except it required manual configuration of everything. That allowed root sites to be hosted and was hoping NPM did as well. Not a huge deal, just another container to run. |
Yeah kindof annoying though since nginx has this functionality built in... Maybe it'll get added at some point :) |
This is a little different but it technically answer to your question (and I'll be able to find it again when I need to). I wanted to change the default congratulation page with my own with a couple of images so I checked this, I still have to try but it should work (I'll update later).
And place your site in the newly created html folder. Of course this will be displayed for every subdomain not already redirected, I don't know if this fits your use case. We have an option for custom html pages but it only allows text (I think) The trick to find stuff like this is enter the container and look around for the correct file |
Hi, I did this but it does not work for some reason. Should the folder be "html" for the host or can I use a different name? |
Host folder name does not matter. Try to enable the custom html first and check where it is. |
Closing this with a reference to #58 |
Hello,
Quick question here, what is the default www directory and is there anything specific I have to do to be able to use it?
I'm switching from another docker with similar features, but that allows me to use the base URL to access the site.
The text was updated successfully, but these errors were encountered: