Skip to content

Commit

Permalink
adding apache mod status
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmerz committed Jul 28, 2022
1 parent e0d4253 commit df4d0e8
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ COPY ucdlib-wp-plugins/ucdlib-special/includes includes
COPY ucdlib-wp-plugins/ucdlib-special/views views
COPY ucdlib-wp-plugins/ucdlib-special/ucdlib-special.php ucdlib-special.php
COPY ucdlib-wp-plugins/ucdlib-special/src/public/index.js src/public/index.js
COPY ucdlib-wp-plugins/ucdlib-special/src/public/lib src/public/lib
COPY ucdlib-wp-plugins/ucdlib-special/src/public/src src/public/src
COPY ucdlib-wp-plugins/ucdlib-special/src/editor/index.js src/editor/index.js
COPY ucdlib-wp-plugins/ucdlib-special/src/editor/lib src/editor/lib

Expand Down Expand Up @@ -203,7 +203,12 @@ WORKDIR $WP_SRC_ROOT

# Apache config
RUN a2enmod headers
RUN a2enmod status
RUN a2enmod access_compat
COPY .htaccess .htaccess
COPY monitoring/status.conf /etc/apache2/conf-available/status.conf
COPY monitoring/ports.conf /etc/apache2/ports.conf
RUN cd /etc/apache2/conf-enabled && ln -s ../conf-available/status.conf

# WP config
COPY wp-config-docker.php wp-config-docker.php
Expand Down
14 changes: 14 additions & 0 deletions monitoring/ports.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# If you just change the port or add more ports here, you will likely also
# have to change the VirtualHost statement in
# /etc/apache2/sites-enabled/000-default.conf

Listen 80
Listen 8080

<IfModule ssl_module>
Listen 443
</IfModule>

<IfModule mod_gnutls.c>
Listen 443
</IfModule>
9 changes: 9 additions & 0 deletions monitoring/status.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ExtendedStatus on
<VirtualHost *:8080>
# ServerName local-stackdriver-agent.stackdriver.com
<Location /server-status>
SetHandler server-status
AllowOverride All
Require all granted
</Location>
</VirtualHost>

0 comments on commit df4d0e8

Please sign in to comment.