Skip to content

Commit

Permalink
Enable the apache /server-status url from the host machine.
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickcarlohickman committed Feb 2, 2024
1 parent 0d01d72 commit 63ba796
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
5 changes: 5 additions & 0 deletions setup/installers/install-apache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ log_info "Updating Apache user and group."
# Change the default apache user and group to the WSL user.
sed -i "s/www-data/${WSL_USER}/g" /etc/apache2/envvars

log_info "Enabling Apache /server-status url from host."

# Enable the /server-status url to be access from the host machine.
sed -i "s/Require local/#Require local/g" /etc/apache2/mods-available/status.conf

log_info "Starting Apache."

# Make sure apache is running with the new config
Expand Down
9 changes: 0 additions & 9 deletions todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,3 @@ default_authentication_plugin=mysql_native_password
CREATE USER '${MYSQL_USER_NAME}'@'%' IDENTIFIED WITH mysql_native_password BY '${MYSQL_USER_PASSWORD}';
=====================================
=====================================

=====================================
apache
=====================================
Update /etc/apache2/mods-available/status.conf to comment out line restricting server-status to localhost.

This allows visiting [wsl-ip]/server-status from host machine to see apache server status.
=====================================
=====================================

0 comments on commit 63ba796

Please sign in to comment.