Forum archive
YouPHPTube behind Apache Proxy
Hi,
I have deployed 2 YouPHPTube Turnkeys OVAs on VMWAREs ESXi.
When asked about ip or domain under installation, I choose "xxxx.com", on one server and local ip on another one.
On the local ip VM, everything perfect no issue.
On the domain defined VM, I cannot reach the Website.
I have a hardware firewall for NATing ports, from the internet connection side to internal servers. There, ports 80 and 443 are routed to an Apache proxy server that handles domain requests, son I can host many domains on the same internet facing IP.
It worked always perfect while port 80 was the only port in use on diferent sites, but in YouPHPTube https/443 is used and I have had no luck routing to it.
Trying to Nat external 446 to internal 443, worked fine on a Owncloud server for example. But due YouPHPTubes config (I supose) it does not work doing that, not even pointing external 443 port to YouPHPTubes internal ip.
I presume that the proxy config will help but I am a bit lost there.
I will apreciate any help.
Thanks in advance
Thank you Jeremy for the answer.
I understand now what to do in theory. I will try to put it into practice, and almost sure come back with some doubts on how to on the way.
I really thought that YPT used both protocols (http, https), and since I only count with one public IP to manage a lot of different servers, it was getting so difficult to understand what to do.
As you pointed out, I use a FW with NAT, forwarding all port 80 traffic from the outside to an internal Apache proxy/reverse-proxy that takes care of redirecting traffic based upon domain names, to internal IPs.
Will work on it and get back with the results.
Thanks again,
CC