Hello everyone!
I just setup a simple home server with Open Media Vault 7 (OMV) and I managed to installed Pi-hole as DHCP and DNS server. The Pi-hole container is running on a separate macvlan network while all other services are running on the default docker network, including Nginx Reverse Proxy. Everything is working fine, I setup the DNS names in Pi-hole and direct everything not on port 80 to nginx service ip, and the pages load correctly.
The nginx sever is at 192.168.0.10. It's very simple to serve any port in this address, but I cannot find a way to serve a port in a different IP address. For example, I have and FTP server running on IP 192.168.0.155:5000, how can I redirect this from nginx? In pihole I set up the DNS as ftp.lan - 192.168.0.10. Then in nginx WebUI I configured as follows:
When I try to access http://ftp.lan I end in nginx home page:
A second point, is it possible to redirect to a path? For example, pihole.lan takes me to pihole page, but not the admin one. I need to add /admin at the address. This is not a problem, but if I could write pihole.lan and go direct to pihole.lan/admin would be great.
I'm not posting my docker files, but if need be I post them.
Thanks in advance.
I just setup a simple home server with Open Media Vault 7 (OMV) and I managed to installed Pi-hole as DHCP and DNS server. The Pi-hole container is running on a separate macvlan network while all other services are running on the default docker network, including Nginx Reverse Proxy. Everything is working fine, I setup the DNS names in Pi-hole and direct everything not on port 80 to nginx service ip, and the pages load correctly.
The nginx sever is at 192.168.0.10. It's very simple to serve any port in this address, but I cannot find a way to serve a port in a different IP address. For example, I have and FTP server running on IP 192.168.0.155:5000, how can I redirect this from nginx? In pihole I set up the DNS as ftp.lan - 192.168.0.10. Then in nginx WebUI I configured as follows:
When I try to access http://ftp.lan I end in nginx home page:
A second point, is it possible to redirect to a path? For example, pihole.lan takes me to pihole page, but not the admin one. I need to add /admin at the address. This is not a problem, but if I could write pihole.lan and go direct to pihole.lan/admin would be great.
I'm not posting my docker files, but if need be I post them.
Thanks in advance.