www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Hagedorn <th...@s-direktnet.de>
Subject config/5021: apachectl not abled to handle with different configfiles
Date Thu, 16 Sep 1999 15:40:22 GMT

>Number:         5021
>Category:       config
>Synopsis:       apachectl not abled to handle with different configfiles
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          change-request
>Submitter-Id:   apache
>Arrival-Date:   Thu Sep 16 08:50:00 PDT 1999
>Originator:     thage@s-direktnet.de
>Release:        1.3.9
we missed the possibility to maintain the apache with the apachectl,
i.e for 'restart' if we use different configfiles.

I modified the apachectl-script so it  recognizes if 'HTTPD_CONF' is set in the environment.
In this case, the httpd is invoced with the '-f' option. Now it works even with 'configtest'
and 'restart'.

Here's the diff, I still hope, this will be helpfull for some othe users,

best regards
*** apachectl.orig      Thu Sep 16 17:07:00 1999
--- apachectl   Thu Sep 16 17:14:12 1999
*** 26,31 ****
--- 26,34 ----
  # the path to your httpd binary, including options if necessary
+ if [ x$HTTPD_CONF != 'x' ] ; then
+ fi
  # a command that outputs a formatted text version of the HTML at the
  # url given on the command line.  Designed for lynx, however other
*** 174,179 ****
--- 177,184 ----
  graceful   - do a graceful restart by sending a SIGUSR1 or start if not running
  configtest - do a configuration syntax test
  help       - this screen
+ If you have set HTTPD_CONF in your environment, this configurationfile is used.
-------------------------------------end diff
[In order for any reply to be added to the PR database, you need]
[to include <apbugs@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or      ]
["Re: general/1098:").  If the subject doesn't match this       ]
[pattern, your message will be misfiled and ignored.  The       ]
["apbugs" address is not added to the Cc line of messages from  ]
[the database automatically because of the potential for mail   ]
[loops.  If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request from a  ]
[developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]

View raw message