Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit 5a1b858

Browse files
authored
Merge pull request #259 from jdeathe/issue/247
CLOSES #247: Adds drop-in config for Apache server-status
2 parents aec0990 + 0230be4 commit 5a1b858

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Summary of release changes.
1616
- Adds improved test workflow; added `test-setup` target to Makefile.
1717
- Adds Makefile target `logsdef` to handle deferred logs output within a target chain.
1818
- Adds `/docs` directory for supplementary documentation and simplify README.
19+
- Adds drop-in configuration for `/server-satus`; removes from global Apache configuration.
1920
- Fixes validation failure of 0 second --timeout value in `test/health_status`.
2021

2122
### 1.13.2 - 2019-08-05

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ RUN useradd -r -M -d /var/www/app -s /sbin/nologin app \
8989
-e 's~^LanguagePriority \(.*\)$~#LanguagePriority \1~g' \
9090
-e 's~^ForceLanguagePriority \(.*\)$~#ForceLanguagePriority \1~g' \
9191
-e 's~^AddLanguage \(.*\)$~#AddLanguage \1~g' \
92-
-e '/#<Location \/server-status>/,/#<\/Location>/ s~^#~~' \
93-
-e '/<Location \/server-status>/,/<\/Location>/ s~Allow from .example.com~Allow from localhost 127.0.0.1~' \
9492
/etc/httpd/conf/httpd.conf \
9593
&& { printf -- \
9694
'\n%s\n%s\n%s\n%s\\\n%s%s\\\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s\n' \
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<Location "/server-status">
2+
SetHandler server-status
3+
<IfVersion < 2.4>
4+
Order deny,allow
5+
Deny from all
6+
Allow from localhost 127.0.0.1
7+
</IfVersion>
8+
<IfVersion >= 2.4>
9+
Require host localhost 127.0.0.1
10+
</IfVersion>
11+
</Location>

0 commit comments

Comments
 (0)