httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Melanie Pfefer <melanie_pfe...@yahoo.co.uk>
Subject Re: [users@httpd] virtual instances
Date Wed, 16 Jul 2008 13:10:28 GMT
Actually I am looking for

1 apache installation
Have independent instances: logs, conf and bin.

VHosts does not seem to have a log, conf and bin for each instance .

Could you please advise?

thx



--- On Wed, 16/7/08, Severin Gehwolf <Severin.Gehwolf@uibk.ac.at> wrote:

> From: Severin Gehwolf <Severin.Gehwolf@uibk.ac.at>
> Subject: Re: [users@httpd] virtual instances
> To: users@httpd.apache.org
> Date: Wednesday, 16 July, 2008, 2:28 PM
> Hi!
> 
> > Is it possible to start or stop 1 virtual host and
> keep the others running?
> 
> As one httpd binary would server several virtual hosts you
> would not be
> able to stop one virtual host by stopping the httpd
> process. However, an
> easy workaround would be to include only specific virtual
> host
> configurations.
> 
> Imagine the following Include directive in your httpd.conf
> 
> 8<--------------
> 
> Include vhosts/*.conf
> 
> -------------->8
> 
> If you would rename the config file of the virtual host
> which should not
> be served anymore into something like
> "vhost.conf.DISABLED" then it
> wouldn't be included on next restart. So, restart httpd
> should do the
> trick then.
> 
> Note!
> One drawback might be that if the DNS entry of the disabled
> vhost
> persists, Apache would not find a virtual host
> configuration for the
> specified Host HTTP header of the requesting client and,
> thus, would
> serve the default virtual host (first defined virtual
> host).
> 
> > Is it possible to have seperate httpd.conf?
> 
> Yes. One could place all virtual hosts configs into a
> separate
> directory:
> 
> ---conf/
>      +----vhosts/host1.conf
>                  host2.conf
>                  host3.conf
> 
> etc.
> 
> Severin
> 
> 
> > 
> > --- On Wed, 16/7/08, Davide Bianchi
> <davide@onlyforfun.net> wrote:
> > 
> > > From: Davide Bianchi
> <davide@onlyforfun.net>
> > > Subject: Re: [users@httpd] virtual instances
> > > To: "Melanie Pfefer"
> <melanie_pfefer@yahoo.co.uk>
> > > Cc: users@httpd.apache.org
> > > Date: Wednesday, 16 July, 2008, 11:20 AM
> > > Melanie Pfefer wrote:
> > > > I added these lines:
> > > > 
> > > > Listen 80
> > > > Listen 81
> > > > 
> > > > NameVirtualHost 10.0.100.4:80
> > > > NameVirtualHost 10.0.100.4:81
> > > > 
> > > > <VirtualHost 10.0.100.4:80>
> > > > ServerName zeus
> > > > DocumentRoot /usr/local/apache2/htdocs
> > > > </VirtualHost>
> > > > 
> > > > <VirtualHost 10.0.100.4:81>
> > > > ServerName zeus
> > > > DocumentRoot /usr/local/apache2/htdocs1
> > > > </VirtualHost>
> > > > 
> > > > When I access http://zeus:80 I get the “It
> works”.
> > > When I access http://zeus:81, the logs show:
> > > > [Wed Jul 16 09:37:18 2008] [error] [client
> > > 172.21.194.71] client denied by server
> configuration:
> > > /usr/local/apache2/htdocs1/
> > > 
> > > Check the error_log, there should be a better
> error message
> > > than 'server 
> > > configuration'. Also, usually you need to
> have a little
> > > more information 
> > > in the VHost configuration (minimal, a
> <Directory>
> > > block with the 
> > > permissions for the DocumentRoot)
> > > 
> > > Check also the permissions on the htdocs1
> directory.
> > > 
> > > Davide
> > > 
> > > -- 
> > > She got her looks from her father. He's a
> plastic
> > > surgeon.
> > > -- Julius Henry "Groucho" Marx
> > > (http://en.wikiquote.org/wiki/Groucho_Marx)
> > > 
> > >
> ---------------------------------------------------------------------
> > > 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
> > >    "   from the digest:
> > > users-digest-unsubscribe@httpd.apache.org
> > > For additional commands, e-mail:
> > > users-help@httpd.apache.org
> > 
> > 
> >      
> __________________________________________________________
> > Not happy with your email address?.
> > Get the one you really want - millions of new email
> addresses available now at Yahoo!
> http://uk.docs.yahoo.com/ymail/new.html
> > 
> >
> ---------------------------------------------------------------------
> > 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
> >    "   from the digest:
> users-digest-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
>    "   from the digest:
> users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail:
> users-help@httpd.apache.org


      __________________________________________________________
Not happy with your email address?.
Get the one you really want - millions of new email addresses available now at Yahoo! http://uk.docs.yahoo.com/ymail/new.html

---------------------------------------------------------------------
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
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message