Blog Home  Home RSS 2.0 Atom 1.0 CDF  
Hairy Spider Blog - Multisite
A web of intrigue
 
 Friday, February 11, 2005
OK and so the most requested failed page at the moment is for Multisite. Here's the exact copy of the old multisite page, without the paypal stuff as that never paid anyway :(

ISAPI - MultiSite Filter Version 2

Introduction

Windows 2000 and XP (Professional) are only able to run one website at a time, when you are developing in a multisite environment it is practically impossible particularly when one site depends on another. Using Multisite one can extend IIS to run as many websites as you need.

The Multisite filter is an ISAPI filter which runs at the root, interrogates the host header of the incoming http request and on the outcome of that redirects the request to the relevant place in the filesystem.

Using Multisite

To set up multiple sites using the MultiSite ISAPI filter, follow these 4 steps:

  1. Copy 'multisite.dll' a location on your C drive
  2. Register the 'multisite.dll' as an ISAPI filter on your IIS server.
    • IIS Management Console
    • Right click your website; Typically called 'Default Web Site and choose 'Properties'
    • Click the tab 'ISAPI Filters'
    • Press the 'Add'-button
    • Filtername: 'multisite'
    Executable: Browse to, and select 'multisite.dll' (just copied to C Drive:)
  3. Once this is done you should be ready to go. Point your browser to http://127.0.0.1/multi.config Now you can add sites through this interface rather than editing obscure ini files, for example:

    URL:
    Path:
    Default Document:
  4. MultiSite will now automatically edit your hosts file, typically located in %WINDIR%\SYSTEM32\DRIVERS\ETC\hosts, you may find trouble if you have no access to this file. If this is true then you will have to add the local redirects yourself:

    	127.0.0.1 aquarium.dev.net
    	127.0.0.1 firstpage
    	127.0.0.1 karate.local
    							

    As you can see, for each website first write down the ip 127.0.0.1 which resolves to 'localhost' a.k.a. the pc you are working on; Following the ip, write down the hostname to refer to your localhost*. * Remember; The 'multisite' ISAPI filter will make IIS use the right webroot by looking at the hostname.

  5. Reset IIS, or stop/start the service. You should now be able to use your configured websites:
    http://aquarium.dev.net

Download Multisite

Download Multisite Version 2

Disclaimer:

You use this software at your own risk.
MultiSite is not supported by Hairy Spider at all.
MultiSite is designed for Windows 2000 Professional not Server.
Download Multisite Version 1

Acknowledgments:

With special thanks to Rob

Copyright © 2008 Rhys Jeremiah. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.
Pick a theme: