Update webserver config

This commit is contained in:
Jeff Lance 2024-05-13 11:43:55 +02:00
parent 2db394a37a
commit a6941d88f4

View File

@ -1,23 +1,32 @@
<VirtualHost *:80>
#
# Following lines need to be updated to your needs
#
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
#ServerName www.example.com
<VirtualHost *:80>
ServerName _
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/public
DirectoryIndex /index.php
DocumentRoot /var/www/html/
<Directory /var/www/html/api/public>
RewriteEngine On
RewriteBase /var/www/html/api/public
<Directory /var/www/html/public>
AllowOverride None
Order Allow,Deny
Allow from All
FallbackResource /index.php
FallbackResource /api/public/index.php
</Directory>
<Directory /var/www/html/app>
AllowOverride None
Order Allow,Deny
Allow from All
DirectoryIndex index.html
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>