nginx as proxy just for a subdomain

Discussion in 'Server Operation' started by rigo, Jun 13, 2010.

  1. rigo

    rigo New Member

    Hi,

    I running Apache as worker with fgcid on Ubuntu 9.04.
    My domains are domain1.tld, domain2.tld, domain3.tld and the subdomains i1.domain1.tld to i4.domain1.tld. When a visitor calls one of the domains, he gets the dynamic content from e.g. domain2.tld (or domain1.tld) and the static content always from i1.domain1.tld to i4.domain1.tld.

    Now I want to use nginx to serve all the requests to i1-i4.domain1.tld and forward all other requests to Apache for the requested domains (incl. the server vars like ["REMOTE_ADDR"] etc.).

    How can I configure this with nginx and what do I have to change in the Apache configuration? I have already googled but this situation seems to be pretty special.

    cu
    rigo
     
  2. falko

    falko Super Moderator Howtoforge Staff

Share This Page