docker:nginx_proxy_manager:forward_to_a_directory
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
docker:nginx_proxy_manager:forward_to_a_directory [2025/07/21 09:17] – peter | docker: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:// | ||
- | |||
- | ---- | ||
- | |||
- | ===== Solution ===== | ||
- | |||
- | In **Custom Locations**: | ||
- | |||
- | * **Location** - set to **/**. | ||
- | * **Forward Location** - set to **192.168.1.1: | ||
- | * It is important that there is a / at the end! | ||
- | |||
- | |||
- | ---- | ||
- | |||
- | ===== Other approach ===== | ||
- | |||
- | Custom configuration in the " | ||
- | |||
- | < | ||
- | location / { | ||
- | proxy_pass http:// | ||
- | } | ||
- | </ | ||
- | |||
- | <WRAP info> | ||
- | **NOTE: | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Another Approach ===== | ||
- | |||
- | < | ||
- | location = /{return 301 $scheme:// | ||
- | </ | ||
- | |||
- | ---- | ||
- | |||
- | ===== Another Approach ===== | ||
- | |||
- | < | ||
- | 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.1753089463.txt.gz · Last modified: 2025/07/21 09:17 by peter