httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pete Nelson" <pete.nel...@ci.stpaul.mn.us>
Subject Re: Virtual Hosts in Apache
Date Mon, 29 Apr 2002 19:11:17 GMT
Is the 'NameVirtualHost' directive in your config file?  If not, Apache
will not know to check for different hostnames.  Take a look at
http://httpd.apache.org/docs/mod/core.html#namevirtualhost (I'll
assume you already looked at the link Joshua sent you).



--
Pete Nelson, Web Developer
<pete.nelson@ci.stpaul.mn.us>
http://www.ci.stpaul.mn.us/

>>> subscribe@myarchive.biz 04/29/02 02:05PM >>>
Then I am at a loss after checking the docs.
It would SEEM (with my foggy head) that this would
allow browsers requesting site1 to get files from H:/Webhost/
and allow browsers requesting site2 to get files from
H:/site2web, but they both get from site1.....

What am i missing?
(thanks for the patience! :)


VirtualHost www.site1.com>
    ServerAdmin webmaster@site1.com 
    DocumentRoot H:/Webhost/
    ServerName www.site1.com 
    ErrorLog logs/www.site1.com-error_log 
    Options Indexes FollowSymLinks
    Options +ExecCGI
    AddHandler cgi-script cgi pl exe
</VirtualHost>
<VirtualHost www.site2.com>
    ServerAdmin webmaster@site2.com 
    DocumentRoot H:/site2web/
    ServerName www.site2.com 
    ErrorLog logs/www.site2.com-error_log 
    Options Indexes FollowSymLinks
    Options +ExecCGI
    AddHandler cgi-script cgi pl exe
</VirtualHost>




====================================
"It is said that if you line up all the cars in the
world end to end, someone would be stupid
enough to try and pass them."
====================================
----- Original Message -----
From: "Esteban" <esteban@epnet.com.ar>
To: <users@httpd.apache.org>
Sent: Monday, April 29, 2002 2:00 PM
Subject: Re: Virtual Hosts in Apache


> You can configure more than one virtual hosts in only one IP address.
It
> depends of your dns configuration and which IP bind each virtual
host.
>
> ----- Original Message -----
> From: "Subscribed" <subscribe@myarchive.biz>
> To: <users@httpd.apache.org>
> Sent: Monday, April 29, 2002 3:56 PM
> Subject: Re: Virtual Hosts in Apache
>
>
> > Thanks for the link, thats where I've been crawling over
> > I've removed the Named Virtual Hosts directive, but
> > am I correct in thinking that each site needs a specific IP
address?
> >
> >
> >
> >
> >
> >
> >
> > ====================================
> > ----- Original Message -----
> > From: "Joshua Slive" <joshua@slive.ca>
> > To: <users@httpd.apache.org>
> > Sent: Monday, April 29, 2002 1:44 PM
> > Subject: Re: Virtual Hosts in Apache
> >
> >
> > > On Mon, 29 Apr 2002, Subscribed wrote:
> > >
> > > > Im trying to get Virtual Hosts for two domains to run in
apache
1.3.24
> > > >
> > > > I'm obviously messing up the syntax, because the sites both
point to
> the
> > > > same page-
> > >
> > > Yep, you screwed up the syntax.  Rather than detailing every
single
> > > problem, let me just point out the bigest problem: you need to
read
the
> > > docs:
> > >
> > > http://httpd.apache.org/docs/vhosts/name-based.html 
> > >
> > > Joshua.
> > >
> > >
> > >
---------------------------------------------------------------------
> > > The official User-To-User support forum of the Apache HTTP
Server
> Project.
> > > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org 
> > > For additional commands, e-mail: users-help@httpd.apache.org 
> > >
> >
> >
> >
---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server
Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org 
> > For additional commands, e-mail: users-help@httpd.apache.org 
> >
>
>
>
---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org 
> For additional commands, e-mail: users-help@httpd.apache.org 
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org 
For additional commands, e-mail: users-help@httpd.apache.org 




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message