docker:nginx_proxy_manager:forward_to_a_directory
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
In Advanced:
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
In Advanced:
location = /{return 301 $scheme://$http_host/admin/;}
Another Approach
In Advanced:
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.txt · Last modified: 2025/07/21 09:18 by peter