https://bz.apache.org/bugzilla/show_bug.cgi?id=69648
Bug ID: 69648
Summary: apxs removes LoadModule line instead of adding it
Product: Apache httpd-2
Version: 2.4.63
Hardware: PC
OS: FreeBSD
Status: NEW
Severity: normal
Priority: P2
Component: Build
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Overview
I noticed some unusual behavior of apxs when using the -A argument. If the
module passed as an argument already exists (commented out or uncommented) in
httpd.conf, that LoadModule line winds up entirely removed from the config
file. If it doesn't exist in any form, then it is correctly added (commented
out with a #).
Steps to Reproduce
I'm running
/usr/local/sbin/apxs -e -A -n authnz_external
/usr/local/libexec/apache24/mod_authnz_external.so
If my httpd.conf file contains either:
LoadModule authnz_external_module libexec/apache24/mod_authnz_external.so
or
#LoadModule authnz_external_module libexec/apache24/mod_authnz_external.so
Actual Results
The LoadModule line is removed from the file. If you repeatedly execute the
same command, httpd.conf will cycle between having the commented out LoadModule
line and having none at all.
Expected Results
The -A should either leave the LoadModule line unchanged, or comment it out,
but not remove it entirely.
Additional Information
If the LoadModule line is not present, then it is added, as expected.
Using -a works fine. It adds or updates the line to uncomment it, but never
removes it. The problem only exists when using -A.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]