ServerAdmin webmaster@localhost DocumentRoot /var/www/html Options Indexes FollowSymLinks AllowOverride None Require all granted # Mount API app and backoffice under /api/* Alias /api/app /var/www/html/api/app Options Indexes FollowSymLinks AllowOverride None Require all granted Alias /api/backoffice /var/www/html/api/backoffice Options Indexes FollowSymLinks AllowOverride None Require all granted # Compatibility route for data status endpoint RewriteEngine On RewriteRule ^/api/app/data/status\.json$ /dataStatusEndpoint.php [L] ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined