This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Different hostname to different internal webserver...

Hi,

I was wondering if it's possible to (re)direct HTTP Traffic to different servers based on hostnames. For example:

server1.example.org HTTP to 10.0.0.1
server2.example.org HTTP to 10.0.0.2

Or what I really want is that only when the FQDN is typed (http://server1.example.org) it's directed to  10.0.0.1 and when http://www.example.org is typed it's being rejected...


This thread was automatically locked due to age.
Parents
  • If you only have 1 external IP, and 2 webservers, then you'd need a reverse proxy. This is not supported in Astaro.

    If you just want to do something simple, like reject a site, setup Virtual hosts (VHosts) on your webserver, and have it return an error or a redirect.

    Barry
  • thnaks for the fast reply BarryG. Well one server is installed with Apache and mod_proxy is enabled. I made a proxypass from server1.example.org/test/ and /test/ is directed to server2.example.org. 

    httpd.conf (on server1):
    ProxyPass /test/ http://server2.example.org/
    ProxyPassReverse /test/ http://server2.example.org/

    The thing it's working but only pictures and some pages are not loaded it looks on server1.example.org instead of server1.example.org/test/. 

    I did see in ASG the option "Reverse Proxy" could I use this for it?
Reply
  • thnaks for the fast reply BarryG. Well one server is installed with Apache and mod_proxy is enabled. I made a proxypass from server1.example.org/test/ and /test/ is directed to server2.example.org. 

    httpd.conf (on server1):
    ProxyPass /test/ http://server2.example.org/
    ProxyPassReverse /test/ http://server2.example.org/

    The thing it's working but only pictures and some pages are not loaded it looks on server1.example.org instead of server1.example.org/test/. 

    I did see in ASG the option "Reverse Proxy" could I use this for it?
Children