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

URL Forwarding using Astaro

Hi there,

I'm fairly new to Astaro so this may be an ignorant question. I'd like to host multiple websites off a single public IP address connected to my ASG. 


Ideally, I'd like Astaro to forward the requests to different URL based on the DNS name in the request. For instance:

http://www.acme.com --> http://internalWebServer/acme


http://www.Pizza.com --> http://internalWebServer/Pizza




If that can't be done, I'd be OK with forwarding a diffent Web servers/ports. For instance:

http://www.acme.com --> http://internalWebServer:8001


http://www.Pizza.com --> http://internalWebServer:8002




Is that possible with Astaro? If not, how do people handle this?

FYI: I'm running IIS on Windows 2003.

Many thanks,
Israel


This thread was automatically locked due to age.
Parents
  • Both are not possible with Astaro alone, but would be possible if you had an internal http proxy.
    OR
    If you only have 1 web server, the web server would be able to do all of this for you.
    I'd recommend making 2 separate sites in IIS and setting them up to respond on each domainname as appropriate.

    Barry
  • Barry

    I guess my question is, can I have ASG forward HTTP requests coming in on the same port and the same IP address based on the dns name specified? Meaning, I'm only going to have a single external IP address, but will have multiple DNS names resolving to the same address. I'll need to route the requests to different hosts/ports based on the DNS name entered. Is that possible?

    thanks!
    Israel
  • No, Astaro cannot do that, nor can any layer 3 device.
    You'll need an internal proxy or some sort of redirector on IIS.
    If you know ASP, it wouldn't be hard to do on IIS.

    Barry
Reply Children
  • Barry

    Thanks for the quick responses. I started with Astaro because my fear was that any Hostname based redirection would be thwarted by the fact that DNAT was rewriting the Dest IP Addresses, and as such assumed that the redirection would need to take place before/during DNAT.

    It ended up being quite a bit simpler than I thought it would be. After a little research, I came across the the following article http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/b77cf015-017f-489c-9b5b-65ca4a679392.mspx?mfr=true which describes how you can configure multiple websites to use the same IP/Port based on the host headers. 

    Essentially, while the Src/Dest are rewritten, the HTTP headers are unaffected. The headers contain the values entered by the user, which is how this technique implements the redirection.


    Regards,
    Israel
  • If you want to get really fancy and granular, you can mimic the mod-rewrite functionality in Apache for IIS using a 3rd party Isapi filter.  The one that I use is the free Ionic's Isapi Rewrite Filter (IIRF) at www.codeplex.com/IIRF.  Also free is the lite version of a similar product at http://www.helicontech.com/.  There are also several pay-for products that do this as well.  A huge amount of versatility in these things as long as your well versed in Regex.
  • which describes how you can configure multiple websites to use the same IP/Port based on the host headers. 


    That's what I was originally talking about (I called it VHosts), but you started talking about running servers/sites on different ports, which is different.

    Barry