User Tools

Site Tools


docker:nginx_proxy_manager:forward_to_a_directory

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
docker:nginx_proxy_manager:forward_to_a_directory [2025/07/21 09:16] peterdocker:nginx_proxy_manager:forward_to_a_directory [2025/07/30 09:19] (current) – removed peter
Line 1: Line 1:
-====== Docker - Nginx Proxy Manager - Forward to a directory ====== 
- 
-To have something like: 
- 
-  * https://sub.domain.com forward to https://192.168.1.1:8080/sub 
- 
----- 
- 
-===== 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: 
- 
-<code> 
-location / { 
-    proxy_pass http://192.168.1.1:8000/custom_dir/; 
-} 
-</code> 
- 
-<WRAP info> 
-**NOTE:**  Visiting domain.com displays the contents of 192.168.1.1:8000/custom_dir/ without redirecting. 
-</WRAP> 
- 
----- 
- 
-===== Another Approach ===== 
- 
-<code> 
-location = /{return 301 $scheme://$http_host/admin/; 
- 
-location / { 
-    # Proxy! 
-    include conf.d/include/proxy.conf; 
-} 
- 
-<WRAP info> 
-**NOTE:**  This has 2 locations. 
- 
-  * One with = sign 
-  * One without. 
-    * This is optional... 
- 
-</WRAP> 
  
docker/nginx_proxy_manager/forward_to_a_directory.1753089375.txt.gz · Last modified: 2025/07/21 09:16 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki