mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[GH-ISSUE #485] Default WWW directory #411
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#411
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DJFraz on GitHub (Jul 2, 2020).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/485
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.
@samr28 commented on GitHub (Jul 13, 2020):
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
@DJFraz commented on GitHub (Jul 13, 2020):
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.
@samr28 commented on GitHub (Jul 13, 2020):
Yeah kindof annoying though since nginx has this functionality built in...
Maybe it'll get added at some point :)
@LivingWithHippos commented on GitHub (Aug 21, 2020):
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).
The default page is taken from /var/www/html so just map that in your
docker-compose.yml. For example with the official file: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
docker exec -it ngix_manager_container_name /bin/bash(or check the source folder in the repository)@punksinatra commented on GitHub (Mar 27, 2021):
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?
@LivingWithHippos commented on GitHub (Mar 27, 2021):
Host folder name does not matter. Try to enable the custom html first and check where it is.
@chaptergy commented on GitHub (May 12, 2021):
Closing this with a reference to https://github.com/jc21/nginx-proxy-manager/issues/58