From a6941d88f40de8c934ab4bcf832a014e73785262 Mon Sep 17 00:00:00 2001 From: Jeff Lance Date: Mon, 13 May 2024 11:43:55 +0200 Subject: [PATCH] Update webserver config --- docker/apache/vhosts/000-default.conf | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/docker/apache/vhosts/000-default.conf b/docker/apache/vhosts/000-default.conf index 89d6aed..cb4ba2d 100644 --- a/docker/apache/vhosts/000-default.conf +++ b/docker/apache/vhosts/000-default.conf @@ -1,23 +1,32 @@ - - # - # Following lines need to be updated to your needs - # +LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so - #ServerName www.example.com + + ServerName _ ServerAdmin webmaster@localhost - DocumentRoot /var/www/html/public - DirectoryIndex /index.php + DocumentRoot /var/www/html/ + + + RewriteEngine On + RewriteBase /var/www/html/api/public - AllowOverride None Order Allow,Deny Allow from All - FallbackResource /index.php + FallbackResource /api/public/index.php + + + + AllowOverride None + Order Allow,Deny + Allow from All + + DirectoryIndex index.html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined +