Mailing List Archive

virtual hosts - adding at runtime
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...

Aljosa

P.S.
sorry for my "bad" english


---------------------------------------------------------------------
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 [ In reply to ]
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 [ In reply to ]
>
> 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

HTH..

-k


---------------------------------------------------------------------
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 [ In reply to ]
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