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

DNAT to multiple Hosts but with the same port

hi!

Is it possible with Astaro to DNAT different Target-Domain-Names (1 IP) to different LAN-Hosts? i.e. I have a domain called example.com.

now I'd like to DNAT:
one.example.com:80 to LAN-Host A
two.example.com:80 to LAN-Host B
three.example.com:80 to LAN-Host C
.....

is this situation possible??


thanks a lot
XandY


This thread was automatically locked due to age.
  • No, that's not possible, Astaro does not have a reverse proxy which is needed for this type of setup.

    Look into the following: Squid reverse proxyHAProxyPound.

    Otherwise you'll have to look into a hardware load balancer like the ones from loadbalancer.org.

    Now, if Astaro could integrate something like HAProxy into Astaro, that would really be awesome and could offer most of the features that a hardware loadbalancer offers at a fraction of the cost.
  • hi!

    How can I relaize a HTTPS-Reverse Proxy?
    I know about apache's reverse proxy, but I think it cannot handle multiple https-reverse-hosts....

    thx
    XandY
  • A proxy can handle multiple HTTPS hosts IF it is doing the SSL itself.

    Barry
  • And don't forget, you always need a dedicated IP address for every SSL host. You can not "Virtual Host" SSL websites.
  • Hi!

    And this is exactly what I do not have :-(

    I just got one dynamic IP Adress (DSL). So there's no possibility to get multpile SSL-Hosts (all :443) running behind this single IP with multpile DNS-Names...???

    Annoying...[:S]
  • I just got one dynamic IP Adress (DSL). So there's no possibility to get multpile SSL-Hosts (all :443) running behind this single IP with multpile DNS-Names...???

    Absolute none - EXCEPT if they are all subdomains of a common domain and you have a wildcard SSL certificate.
  • Yes, I got several Subdomains...

    i.e.:
    root-Domain: domain.gotdns.com
    sub-domain A: a.domain.gotdns.com
    sub-domain B: b.domain.gotdns.com

    Is it possible with apache?

    I got already http-vhosts (:80) realized with apache...

    Big THX!!!
  • I haven't actually tried it myself, but you may be able to get it to work with a wildcard SSL certificate.

    You could test it with a normal certificate and see if you get sent to the proper site, just note that you will get certificate domain name mismatch errors.