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
|
exec apachectl -DFOREGROUND
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Replace default vhost so root serves the users UI
|
# Make "/" serve the users UI
|
||||||
RUN bash -lc 'cat >/etc/apache2/sites-available/000-default.conf <<EOF
|
RUN set -e; \
|
||||||
|
cat >/etc/apache2/sites-available/000-default.conf <<'EOF'
|
||||||
<VirtualHost *:80>
|
<VirtualHost *:80>
|
||||||
ServerName localhost
|
ServerName localhost
|
||||||
DocumentRoot /var/www/html/daloradius/users
|
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
|
Require all granted
|
||||||
</Directory>
|
</Directory>
|
||||||
DirectoryIndex index.php
|
DirectoryIndex index.php
|
||||||
ErrorLog \${APACHE_LOG_DIR}/error.log
|
ErrorLog ${APACHE_LOG_DIR}/error.log
|
||||||
CustomLog \${APACHE_LOG_DIR}/access.log combined
|
CustomLog ${APACHE_LOG_DIR}/access.log combined
|
||||||
</VirtualHost>
|
</VirtualHost>
|
||||||
EOF' \
|
EOF
|
||||||
&& apache2ctl -t
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user