RE: Apache Virtual Hosting


Subject: RE: Apache Virtual Hosting
jsaam@mcc-cpa.com
Date: Wed Apr 24 2002 - 13:43:43 AKDT


Ok -- once I fixed my terminology thinking -- I was able to search and found
that the httpd.conf file has to include all the default document types
(under the virtual host entry) ie:
...............................................
# Virtual host Default Virtual Host
<VirtualHost _default_:*>
         DocumentRoot /var/www/html
         ServerName _default_
 --> DirectoryIndex index.php default.asp default.htm default.html
index.html index.htm index.shtml
         LogLevel debug
</VirtualHost>
...............................................

I already had that line in there, but I had an extra '/' after the
DocumentRoot setting.. That was screwing it up. Now all I have to do is go
to the site www.mydomain.com/site2 and it will search for the default
document types to open (so I don't have to specify
www.mydomain.com/site2/default.htm) <-- pain in the rear

Cheers

Jon
-----Original Message-----
From: Jon Saam
Sent: Wednesday, April 24, 2002 1:26 PM
To: arthur@corlissfamily.org
Cc: aklug@aklug.org
Subject: RE: Apache Virtual Hosting

Yeah -- I guess my terminology was off a little.. The M$ term for what I
want to do is call Virtuall Directory -- if that helps any.

I realize that I can put a folder called site2 in my Virtual directory for
www.mydomain.com -- hence I would be able to go to www.mydomain.com/site2 --
but you have to specify the default document for that option to work.. I
guess I'm just bein lazy, eh?

:)

Jon

-----Original Message-----
From: Arthur Corliss [mailto:arthur@corlissfamily.org]
Sent: Tuesday, April 23, 2002 7:09 PM
To: Jon Saam; aklug@aklug.org
Subject: Re: Apache Virtual Hosting

> Ok - dumb question, but none of the readme's are getting me anywhere:
>
> I want to enable a virtual host off my main server such as this:
>
> website1: www.mydomain.com <http://www.mydomain.com>
> website2: www.mydomain.com/site2 <http://www.mydomain.com/site2>
>
> I'm trying to convert from IIS to apache, and I know how to do this in
> IIS, but I can't seem to get it in apache.. any help appreciated

Maybe I'm missing something, but the above looks an awful lot like the same
domain with just a separate site in the URI space. To work as written
above,
you'd only need to configure the one mydomain.com. . .

--

--Arthur Corliss Bolverk's Lair -- http://arthur.corlissfamily.org/ Digital Mages -- http://www.digitalmages.com/ "Live Free or Die, the Only Way to Live" -- NH State Motto

--------- To unsubscribe, send email to <aklug-request@aklug.org> with 'unsubscribe' in the message body.

--------- To unsubscribe, send email to <aklug-request@aklug.org> with 'unsubscribe' in the message body.



This archive was generated by hypermail 2a23 : Wed Apr 24 2002 - 13:40:01 AKDT