Accessing webserver from outside network goes to another (wrong) webserver
I have been using pfSense for last 3 months and now I have a fair understanding of the system - as far as I need to use it.
However, right now (from last 3 days), I am facing an unique issue:
I have 2 webservers hosting 2 different websites: www.abc.com and www.xyz.com - both of them are accessible from inside the network. abc is also accessible from outside, but when it comes to xyz.com, if I try to access it from outside, it takes me abc.com - url remains xyz.com but website rendered it from xyz.com
To give you some background info:
This is a production environment, I am using the latest pfSense, and using ACME and HAPRoxy reverse proxy for accessing multiple servers from behind the forewall.
Pfsense has got WAN, LAN and Opt1 (Wireless) and the test laptop is connected to Opt1 wirelessly from where I can access xyz. without any issue (as it is still within the network) but when I try to access it from outside the network (including friends and family from their home), it gets redirected to abc.com... they can see the url to be xyz.com but the whole website that gets rendered to their laptop/phone is xyz.com
I have checked NAT (can't see any reflection), checked all rules, but can't see any issue. Moreover, as it is two different webservers, I don't think 2 websites running on the same port (80 & 443) should be an issue.
As you can see I am really stuck and unable to troubleshoot it any further. I am sure, I am missing something silly/stupid/basic configuration. So any help would be highly appreciated.
In case you need more information, please do let me know.
Bob.Dig last edited by
@raviktiwari I could be wrong, but I think, ha proxy is listening on the wan directly, so there is no NAT needed, just open ports.
Sorry, but open which port? 80 and 443 is already open.
Had to open port 80 & 443 for the webserver using it's IP.
Makes sense, as the other webserver IP was open and so all traffic was getting routed over there. Opened the new IP and then HAProxy managed the show using backend and frontend.
Thanks @Bob-Dig for your willingness to help and for your time - appreciate it mate.