Results 1 to 5 of 5

Thread: Different server for a subdirectory

  1. #1
    Ah, Mrs. Peel! mike_w's Avatar
    Join Date
    Oct 2003
    Location
    Hertfordshire, England
    Posts
    3,326
    Thanks
    3
    Thanked
    9 times in 7 posts

    Different server for a subdirectory

    Apologies if this is a stupid question, but I have no experience with IIS, and little with web serving in general!

    At the moment, we have an IIS server that handles the entire website. However, we have Apache installed on another machine, and would like to make the site on Apache accessible through the same domain name, under a subdirectory.

    In other words, if you type www.example.com/specialSubDirectory, the request is passed onto the Apache server, otherwise the IIS server deals with it.

    Is this at all possible? I hope I've made that clear!

    Thanks

    Mike.
    "Well, there was your Uncle Tiberius who died wrapped in cabbage leaves but we assumed that was a freak accident."

  2. #2
    YUKIKAZE arthurleung's Avatar
    Join Date
    Feb 2005
    Location
    Aberdeen
    Posts
    3,280
    Thanks
    8
    Thanked
    88 times in 83 posts
    • arthurleung's system
      • Motherboard:
      • Asus P5E (Rampage Formula 0902)
      • CPU:
      • Intel Core2Quad Q9550 3.6Ghz 1.2V
      • Memory:
      • A-Data DDR2-800 2x2GB CL4
      • Storage:
      • 4x1TB WD1000FYPS @ RAID5 3Ware 9500S-8 / 3x 1TB Samsung Ecogreen F2
      • Graphics card(s):
      • GeCube HD4870 512MB
      • PSU:
      • Corsair VX450
      • Case:
      • Antec P180
      • Operating System:
      • Windows Server 2008 Standard
      • Monitor(s):
      • Dell Ultrasharp 2709W + 2001FP
      • Internet:
      • Be*Unlimited 20Mbps
    IIS and Apache cannot bind to the same port so you will need some sort of trick.

    I think Apache's mod_rewrite can redirect the request to the IIS server running on another port (e.g. port 81) with .htaccess. Have to be carefully designed not to cause looping.

    Or as simple as writing a redirecting page to jump to the other server.

    e.g. When the user hit www.example.com/specialSubDirectory , he will be directed to www.example.com:81/specialSubDirectory, or www2.example.com/specialSubDirectory if you got a spare IP. Guide: http://billstclair.com/html-redirect2.html (or search "html redirect" on google)
    Workstation 1: Intel i7 950 @ 3.8Ghz / X58 / 12GB DDR3-1600 / HD4870 512MB / Antec P180
    Workstation 2: Intel C2Q Q9550 @ 3.6Ghz / X38 / 4GB DDR2-800 / 8400GS 512MB / Open Air
    Workstation 3: Intel Xeon X3350 @ 3.2Ghz / P35 / 4GB DDR2-800 / HD4770 512MB / Shuttle SP35P2
    HTPC: AMD Athlon X4 620 @ 2.6Ghz / 780G / 4GB DDR2-1000 / Antec Mini P180 White
    Mobile Workstation: Intel C2D T8300 @ 2.4Ghz / GM965 / 3GB DDR2-667 / DELL Inspiron 1525 / 6+6+9 Cell Battery

    Display (Monitor): DELL Ultrasharp 2709W + DELL Ultrasharp 2001FP
    Display (Projector): Epson TW-3500 1080p
    Speakers: Creative Megaworks THX550 5.1
    Headphones: Etymotic hf2 / Ultimate Ears Triple.fi 10 Pro

    Storage: 8x2TB Hitachi @ DELL PERC 6/i RAID6 / 13TB Non-RAID Across 12 HDDs
    Consoles: PS3 Slim 120GB / Xbox 360 Arcade 20GB / PS2

  3. #3
    Sublime HEXUS.net
    Join Date
    Jul 2003
    Location
    The Void.. Floating
    Posts
    11,819
    Thanks
    213
    Thanked
    233 times in 160 posts
    • Stoo's system
      • Motherboard:
      • Mac Pro
      • CPU:
      • 2*Xeon 5450 @ 2.8GHz, 12MB Cache
      • Memory:
      • 32GB 1600MHz FBDIMM
      • Storage:
      • ~ 2.5TB + 4TB external array
      • Graphics card(s):
      • ATI Radeon HD 4870
      • Case:
      • Mac Pro
      • Operating System:
      • OS X 10.7
      • Monitor(s):
      • 24" Samsung 244T Black
      • Internet:
      • Zen Max Pro
    Arthur, you mis-read the question, the apache service is on a different machine..

    The simplest way is to assign the apache server a subdomain, so instead of www.yourdomain.com it would be something like apache.yourdomain.com

    Very simple to do, all it requires is one change in the dns settings of the domain

    Making it a subdirectory is a little trickier - you could setup a virtual directory in IIS, but then you'd be limited to using a redirect..

    The other way is to handle it in a frame or iframe with the frame source for the section being the apache url..
    (\__/)
    (='.'=)
    (")_(")

  4. Received thanks from:

    mike_w (06-07-2007)

  5. #4
    Registered+
    Join Date
    Jul 2007
    Posts
    66
    Thanks
    4
    Thanked
    2 times in 2 posts
    • Arimus's system
      • Motherboard:
      • Asus M4A79 Delux
      • CPU:
      • AMD Phenom II X940 BE / 3.0GHz quad core
      • Memory:
      • 4GB DDR2 1065Mhz
      • Storage:
      • 2x500GB WD Caviar SATA
      • Graphics card(s):
      • ATI Sapphire 4870 1GB
      • PSU:
      • OCZ 850w
      • Case:
      • NA
      • Operating System:
      • Vista 64/Fedora
      • Monitor(s):
      • Asus 24"
      • Internet:
      • ADSL 8MB
    (Not sure which variant of IIS you are using but according MS IIS6.0 (and I'd assume later) supports rewrite...

    http://www.microsoft.com/technet/pro...383b1bb08.mspx

  6. #5
    Ah, Mrs. Peel! mike_w's Avatar
    Join Date
    Oct 2003
    Location
    Hertfordshire, England
    Posts
    3,326
    Thanks
    3
    Thanked
    9 times in 7 posts
    I suspected a subdomain would make life easy... that information is very handy, thanks very much!
    "Well, there was your Uncle Tiberius who died wrapped in cabbage leaves but we assumed that was a freak accident."

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Quick question about DHCP server in Win Server 2003
    By latrosicarius in forum Networking and Broadband
    Replies: 8
    Last Post: 24-05-2006, 06:07 PM
  2. BF2 patch tomorrow
    By Tobeman in forum Gaming
    Replies: 0
    Last Post: 04-10-2005, 04:43 PM
  3. Sharepoint
    By Vini in forum Software
    Replies: 9
    Last Post: 21-07-2005, 05:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •