[Xitami] Newbie can't setup virtual hosts

Julian Rickards xitami@lists.xitami.org
Mon, 2 Jul 2001 18:55:35 -0400


On 25 Jun 01, at 1:34, Paul Reid wrote:

Hi Paul:

Many thanks for your attempts to help but to no avail.  I still can't 
setup virtual hosting on my system.

Quick Review: am a website designer, want to use Xitami to "host" 
the "works in progress" on my own personal computer so I can test a 
"site in action", including SSI, Perl, PHP and absolute paths.

> You probably have a text file called "hosts".

Actually, I have a HOSTS.SAM and a LMHOSTS.SAM.  Because I have 
seen some reference to renaming the HOSTS.SAM to simply HOSTS, 
I did that too but your instructions below continued to fail.

> It looks something like this: 
> # This is a sample HOSTS file ...
> #  102.54.94.97     rhino.acme.com      # source server
> 127.0.0.1       localhost
> 
> If typing "localhost" at your browser opens your page at
> 127.0.0.1, you have a hosts file somewhere (and that's why it
> works). Anything on a line after "#" is ignored. 

Yes, once I started up Xitami, I typed "localhost" in my browser and I 
got the Xitami documentation that is on my system.  I also typed 
127.0.0.1 and the same result.  Pinging both 127.0.0.1 and localhost 
resulted in positive results.

> Add some lines like 
> 127.0.0.1 manny
> 127.0.0.1 moe
> 127.0.0.1 jack
> Save the file. 
> Now, typing "manny" at your browser should open your default
> 127.0.0.1 page.

Didn't!  This may be where the instructions fail but I continued along 
with the rest of your suggestions anyway.

> Now go into Xitami's Vhost settings and tell it that "manny"
> points to a CFG file called "manny.cfg". In manny.cfg, point to
> "O:/WebSites/mndm" as the root of the web pages for that host. Do the
> same for moe and jack, except point to your other web-root folders. 

Given the suggestion of yours below that since I had originally 
installed Xitami on H:\Xitami and the webpages for stc are at 
O:\Websites\stc, I then uninstalled Xitamin and reinstalled it in 
O:\Xitami and moved the stc webpages to 
O:\Xitami\webpages\stc\public_html\.

> Now typing manny, moe, or jack at your browser should open three
> different web sites. 

No luck

> You -may- still have trouble with your TCP stack not believing
> the hosts file and going to the modem to ask a "real DNS". MS TCP
> stacks can be quite dumb. 

Ok, I think I understand but I think other problems exist that are 
preventing it for working properly.

> When you get past that: I've had some trouble when web folders
> are not on the same drive as Xitami. It "should" work, and often
> it does, but sometimes it does not. 

I moved the webpage files as I stated above.

> Also: after setting or changing a Vhost, stop and restart Xitami. I'm
> not sure if it "should" pick up the change on the fly, but my habit is
> to force it to start anew.

I do that too.

Jules