docker:nginx_proxy_manager:forward_to_a_directory
This is an old revision of the document!
Table of Contents
Docker - Nginx Proxy Manager - Forward to a directory
Solution
In Custom Locations:
- Location - set to /.
- Forward Location - set to 192.168.1.1:8080/sub/.
- It is important that there is a / at the end!
Other approach
Custom configuration in the “Advanced” tab:
location / { proxy_pass http://192.168.1.1:8000/custom_dir/; }
NOTE: Visiting domain.com displays the contents of 192.168.1.1:8000/custom_dir/ without redirecting.
Another Approach
<code> location = /{return 301 $scheme:$http_host/admin/;} location / { # Proxy! include conf.d/include/proxy.conf; }
NOTE: This has 2 locations.
- One with = sign
- One without.
- This is optional…
docker/nginx_proxy_manager/forward_to_a_directory.1753089375.txt.gz · Last modified: 2025/07/21 09:16 by peter