Virtual Hosts Via CGI

POLYNYM is a small (19K) STANDARD CGI application that gives a virtual hosts
opportunity to Win32 HTTP/1.0 webservers.

If Your webserver has a CGI instead of index.html feature You can use it "as is",
otherwise You must make an index.html refresh page like this:
<META HTTP-EQUIV="REFRESH" CONTENT="0;URL=/cgi-bin/index.exe">
or a cloak page like this:
<TITLE>Your title</TITLE>
<META NAME="keywords" CONTENT="">
<META NAME="robots" CONTENT="index,follow">
<META NAME="description" CONTENT="">
<META NAME="generator" CONTENT="PolyNym Forwarding">
<FRAMESET cols="100%" rows="100%,*"
 <FRAME frameborder="0" name="destination"
  scrolling="auto" src="/cgi-bin/index.exe">
 <FRAME frameborder="0" marginheight="0" marginwidth="0"
  name="other" scrolling="no" src="" bordercolor="#C0C0C0">
 <A HREF="/cgi-bin/index.exe">Press here to enter</A>
and to put it in the root directory of Your webserver. For the .htaccess-driven
webservers (like Apache) You also can make .htaccess file like this instead of
refresh or cloak page:
ErrorDocument 404 /cgi-bin/index.exe

program is called index.exe and picks up own settings from the file
called index.ini placed in the same directory. (You can rename the index.exe file
but after that don't forget to rename the index.ini file too to the new *.ini name.)
Here is an index.ini demo with comments:
[Virtual Hosts]
;  Put here lines hostname=reaction as
;    1) hostname=dos_path_to_html_file - for local page push,
;    2) hostname=>url_redirection - for visible new location,
;    3) hostname=<url_to_cloak - for invisible new location,
;    4) hostname=<"any_title"url_to_cloak - same with title.
;  Remarks:
;    a. query-string is auto-assumed to the new location.
;    b. for default reaction put * instead of hostname.
;    c. in title with quotation-marks (") type them twice.
;    d. default title is the hostname itself.
;  Example:
;    *=d:\www\root\my\sorry.htm
;    localhost=d:\www\root\my\inside.htm
;    www.hwml.com=>http://www.eiderman.com
;    leib.dhs.org=<"Leib's page"http://members.iol.co.il/leib

is written by Aryeh Eiderman Netstrap Ltd using Borland Delphi 4.0
and it is FREE for commercial and non-commercial usage.

Press here to download POLYNYM v.1.0 (15K, this page included).

POLYNYM home: http://www.netstrap.com/polynym/polynym.htm