diff --git a/changes-entries/69950.txt b/changes-entries/69950.txt new file mode 100644 index 00000000000..46d7d0126ac --- /dev/null +++ b/changes-entries/69950.txt @@ -0,0 +1,3 @@ + *) apachectl: Pass the arguments following "configtest" on to httpd, so that + for example -f is honoured. PR 69950 + [Arturo Bernal] diff --git a/docs/manual/programs/apachectl.xml b/docs/manual/programs/apachectl.xml index 5feeddf611e..26303c682b3 100644 --- a/docs/manual/programs/apachectl.xml +++ b/docs/manual/programs/apachectl.xml @@ -137,7 +137,9 @@ This is equivalent to apachectl -k graceful-stop.
Run a configuration file syntax test. It parses the configuration files and either reports Syntax Ok or detailed information about the particular syntax error. This is -equivalent to apachectl -t.
+equivalent to apachectl -t. Further arguments are passed on to +httpd, so apachectl configtest -f +file tests the given configuration file. diff --git a/support/apachectl.in b/support/apachectl.in index 3281c2e6cd1..37558438f9b 100644 --- a/support/apachectl.in +++ b/support/apachectl.in @@ -88,7 +88,8 @@ startssl|sslstart|start-SSL) ERROR=2 ;; configtest) - $HTTPD -t + shift + $HTTPD -t "$@" ERROR=$? ;; status)