You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Joshua Slive <jo...@slive.ca> on 2002/02/17 05:12:25 UTC

Re: virtual hosts - adding at runtime

On Sat, 16 Feb 2002, Kevin M. Shortt wrote:

> >
> > i tried reading docs, playing with it, but i can't make it to work.
> > can somebody sent me example(s) howto add virtual hosts at runtime,
> > without restarting apache. thxn...
>
> 	As far as I know this is not possible.
>
> 	The closest you can come is by doing a graceful restart.
> 	This will restart apache (which re-reads httpd.conf) without
> 	breaking any current connections.
>
> 	graceful restart can be done with the apachectl script:
> 		%%>apachectl graceful

Right.  That is the best way for a relatively small number of vhosts.  For
a large number of vhosts, see:
http://httpd.apache.org/docs/vhosts/mass.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


Re: virtual hosts - adding at runtime

Posted by Scott Jeffries <sj...@attbi.com>.
It can be done, last place I worked we did it using mod rewrite. The 
vhost were maped to a text file and any changes to the text file would 
be picked up by apache automatically, no restart needed.

Joshua Slive wrote:

>On Sat, 16 Feb 2002, Kevin M. Shortt wrote:
>
>>>i tried reading docs, playing with it, but i can't make it to work.
>>>can somebody sent me example(s) howto add virtual hosts at runtime,
>>>without restarting apache. thxn...
>>>
>>	As far as I know this is not possible.
>>
>>	The closest you can come is by doing a graceful restart.
>>	This will restart apache (which re-reads httpd.conf) without
>>	breaking any current connections.
>>
>>	graceful restart can be done with the apachectl script:
>>		%%>apachectl graceful
>>
>
>Right.  That is the best way for a relatively small number of vhosts.  For
>a large number of vhosts, see:
>http://httpd.apache.org/docs/vhosts/mass.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