You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Melanie Pfefer <me...@yahoo.co.uk> on 2007/12/20 12:40:02 UTC

[users@httpd] how to re-read the configuration without restarting apache

hello,

I need to add these 2 lines to my conf file:

RewriteEngine On
RewriteRule ^/(OpenObject.*) http://server2:9000/$1


the http service is critical and cannot kill sessions.
Is there a way to reload the configuration without
restarting apache?

thanks.


      __________________________________________________________
Sent from Yahoo! Mail - a smarter inbox http://uk.mail.yahoo.com


---------------------------------------------------------------------
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


Re: [users@httpd] how to re-read the configuration without restarting apache

Posted by Christian Folini <ch...@post.ch>.
On Thu, Dec 20, 2007 at 11:40:02AM +0000, Melanie Pfefer wrote:
> the http service is critical and cannot kill sessions.
> Is there a way to reload the configuration without
> restarting apache?

apachectl  -h
Usage: /data/custom-apaches/apache-2.0.61/bin/httpd \
  [-D name] [-d directory] [-f file]
  [-C "directive"] [-c "directive"]
  [-k start|restart|graceful|stop]
  [-v] [-V] [-h] [-l] [-L] [-t] [-S]

It's the graceful you are after.

Christian


---------------------------------------------------------------------
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


RE: [users@httpd] how to re-read the configuration without restarting apache

Posted by Axel-Stephane SMORGRAV <Ax...@europe.adp.com>.
If that server of yours really is critical, I would urge you NOT to change the operational configuration before having tested the changes elsewhere.


-ascs
 
-----Message d'origine-----
De : Melanie Pfefer [mailto:melanie_pfefer@yahoo.co.uk] 
Envoyé : jeudi 20 décembre 2007 12:40
À : users@httpd.apache.org
Objet : [users@httpd] how to re-read the configuration without restarting apache

hello,

I need to add these 2 lines to my conf file:

RewriteEngine On
RewriteRule ^/(OpenObject.*) http://server2:9000/$1


the http service is critical and cannot kill sessions.
Is there a way to reload the configuration without restarting apache?

thanks.

---------------------------------------------------------------------
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


Re: [users@httpd] how to re-read the configuration without restarting apache

Posted by "Neil A. Hillard" <ne...@agustawestland.com>.
Hi,

Melanie Pfefer wrote:
> hello,
> 
> I need to add these 2 lines to my conf file:
> 
> RewriteEngine On
> RewriteRule ^/(OpenObject.*) http://server2:9000/$1
> 
> 
> the http service is critical and cannot kill sessions.
> Is there a way to reload the configuration without
> restarting apache?

apachectl configtest
apachectl graceful

or if you're using Fedora / RedHat / CentOS:

service httpd configtest
service httpd reload

HTH,


				Neil.

-- 
Neil Hillard                    neil.hillard@agustawestland.com
AgustaWestland                  http://www.whl.co.uk/

Disclaimer: This message does not necessarily reflect the
            views of Westland Helicopters Ltd.

---------------------------------------------------------------------
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


Re: [users@httpd] how to re-read the configuration without restarting apache

Posted by Melanie Pfefer <me...@yahoo.co.uk>.
thanks.


      ___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/ 

---------------------------------------------------------------------
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


Re: [users@httpd] how to re-read the configuration without restarting apache

Posted by Severin Gehwolf <Se...@uibk.ac.at>.
> I need to add these 2 lines to my conf file:
> 
> RewriteEngine On
> RewriteRule ^/(OpenObject.*) http://server2:9000/$1

Melanie, you should alter the latter line (above) to

RewriteRule ^/(OpenObject.*) http://server2:9000/$1 [R=301,L]

This way, browsers are able to cache the request (R=301) and will
contact server2 immediately without bothering server1 again. The "L"
option makes makes apache to not process any further rewrites appearing
later in your configuration. See
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html

> the http service is critical and cannot kill sessions.
> Is there a way to reload the configuration without
> restarting apache?

<path-to-apachectl>/apachectl configtest (tests your config)
<path-to-apachectl>/apachectl graceful (gracefully restarts apache)

should do what you intended. Though, I am not sure if your sessions will
persist, depending on the session-mechanism. See
http://httpd.apache.org/docs/2.2/stopping.html

---
severin


---------------------------------------------------------------------
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