diff --git a/setup/installers/install-apache.sh b/setup/installers/install-apache.sh index cc97c1e..84b0128 100755 --- a/setup/installers/install-apache.sh +++ b/setup/installers/install-apache.sh @@ -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 diff --git a/todo.txt b/todo.txt index 04a4f00..d4ff6fa 100644 --- a/todo.txt +++ b/todo.txt @@ -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. -===================================== -=====================================