Update Apache configuration to serve users UI from root
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m7s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m7s
This commit is contained in:
13
Dockerfile
13
Dockerfile
@@ -79,8 +79,9 @@ fi
|
||||
exec apachectl -DFOREGROUND
|
||||
EOF
|
||||
|
||||
# Replace default vhost so root serves the users UI
|
||||
RUN bash -lc 'cat >/etc/apache2/sites-available/000-default.conf <<EOF
|
||||
# Make "/" serve the users UI
|
||||
RUN set -e; \
|
||||
cat >/etc/apache2/sites-available/000-default.conf <<'EOF'
|
||||
<VirtualHost *:80>
|
||||
ServerName localhost
|
||||
DocumentRoot /var/www/html/daloradius/users
|
||||
@@ -89,11 +90,11 @@ RUN bash -lc 'cat >/etc/apache2/sites-available/000-default.conf <<EOF
|
||||
Require all granted
|
||||
</Directory>
|
||||
DirectoryIndex index.php
|
||||
ErrorLog \${APACHE_LOG_DIR}/error.log
|
||||
CustomLog \${APACHE_LOG_DIR}/access.log combined
|
||||
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||
</VirtualHost>
|
||||
EOF' \
|
||||
&& apache2ctl -t
|
||||
EOF
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user