docker:nginx_proxy_manager:forward_to_a_directory
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
docker:nginx_proxy_manager:forward_to_a_directory [2025/07/21 09:06] – created peter | docker:nginx_proxy_manager:forward_to_a_directory [2025/07/21 09:18] (current) – peter | ||
---|---|---|---|
Line 9: | Line 9: | ||
===== Solution ===== | ===== Solution ===== | ||
- | In **Custom Locations" | + | In **Custom Locations**: |
* **Location** - set to **/**. | * **Location** - set to **/**. | ||
* **Forward Location** - set to **192.168.1.1: | * **Forward Location** - set to **192.168.1.1: | ||
+ | * It is important that there is a / at the end! | ||
+ | ---- | ||
+ | |||
+ | ===== Other approach ===== | ||
+ | |||
+ | In **Advanced**: | ||
+ | |||
+ | < | ||
+ | location / { | ||
+ | proxy_pass http:// | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Another Approach ===== | ||
+ | |||
+ | In **Advanced**: | ||
+ | |||
+ | < | ||
+ | location = /{return 301 $scheme:// | ||
+ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Another Approach ===== | ||
+ | |||
+ | In **Advanced**: | ||
+ | |||
+ | < | ||
+ | location = /{return 301 $scheme:// | ||
+ | |||
+ | location / { | ||
+ | # Proxy! | ||
+ | include conf.d/ | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | * One with = sign | ||
+ | * One without. | ||
+ | * This is optional... | ||
+ | |||
+ | </ | ||
docker/nginx_proxy_manager/forward_to_a_directory.1753088776.txt.gz · Last modified: 2025/07/21 09:06 by peter