We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d64592d commit c423b54Copy full SHA for c423b54
collecting-metrics-with-alloy/exporters/Dockerfile.apache
@@ -0,0 +1,17 @@
1
+# Use an official Apache image
2
+FROM httpd:latest
3
+
4
+# Enable mod_status module
5
+RUN sed -i '/LoadModule status_module/s/^#//g' /usr/local/apache2/conf/httpd.conf
6
7
+# Add mod_status configuration
8
+RUN echo "\
9
+<Location /server-status>\n\
10
+ SetHandler server-status\n\
11
+ Require local\n\
12
+ Require ip 192.168.1.5\n\
13
+</Location>\n\
14
+ExtendedStatus On\n" >> /usr/local/apache2/conf/httpd.conf
15
16
+# Expose port 80
17
+EXPOSE 80
0 commit comments