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

Host Header Routing

So just a quick question and not even sure if it is possible but I want to setup a secondary webserver on my network.  This webserver will host a different site than what my current server is hosting. Both servers will be listening on port 80.  Is it possible with Astaro to configure a rule that checks the host header?  So that way if a request for the new server comes in it routes it where it needs to go?


This thread was automatically locked due to age.
Parents
  • Update on this ...

    Well, I finally got time to try this but it didn't work as my web application uses host headers to determine which site you are on and re-mapping to IP's is being a major issue. I have done some research and found this in my host headers from my attempt to browse the WAF application:

    Host = intwebserver (Internal web server's host name as defined by Real Server)
    X-Forwarded-For = 1.1.1.1 (my browsing machine's IP)
    X-Forwarded-Host = domain.com (domain name of the external facing URL)
    X-Forwarded-Server = domain.com (domain name of the external facing URL)

    IIS seems unable to read the X-Forwarded-Host & X-Forwarded-Server headers. If anyone knows a quick fix for this, I would love it.

    However, I saw the intwebserver domain name definition. I replaced the Real Web Servers with "Internal" urls for the website (domain.intdomain) and BAM!, it worked. It is a lot of DNS and Network Definition management but I get what I want through the Astaro.

    Thanks for the direction everyone.

    Jared
Reply
  • Update on this ...

    Well, I finally got time to try this but it didn't work as my web application uses host headers to determine which site you are on and re-mapping to IP's is being a major issue. I have done some research and found this in my host headers from my attempt to browse the WAF application:

    Host = intwebserver (Internal web server's host name as defined by Real Server)
    X-Forwarded-For = 1.1.1.1 (my browsing machine's IP)
    X-Forwarded-Host = domain.com (domain name of the external facing URL)
    X-Forwarded-Server = domain.com (domain name of the external facing URL)

    IIS seems unable to read the X-Forwarded-Host & X-Forwarded-Server headers. If anyone knows a quick fix for this, I would love it.

    However, I saw the intwebserver domain name definition. I replaced the Real Web Servers with "Internal" urls for the website (domain.intdomain) and BAM!, it worked. It is a lot of DNS and Network Definition management but I get what I want through the Astaro.

    Thanks for the direction everyone.

    Jared
Children
No Data