<VirtualHost *:80>
ServerName frontend.dev
DocumentRoot "/srv/www/htdocs/warehouse/store/frontend/web/"
<Directory "/srv/www/htdocs/warehouse/store/frontend/web/">
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine on
RewriteRule ^(frontend|backend)/web/ - [L]
# If a directory or a file exists, use the request directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* frontend/web/$0
# Otherwise forward the request to index.php
#RewriteRule . /web/index.php
# use index.php as index file
DirectoryIndex index.php
# ...other settings...
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName backend.dev
DocumentRoot "/srv/www/htdocs/warehouse/store/backend/web/"
<Directory "/srv/www/htdocs/warehouse/backend/web/">
# use mod_rewrite for pretty URL support
RewriteEngine on
# If a directory or a file exists, use the request directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Otherwise forward the request to index.php
RewriteRule . index.php
# use index.php as index file
DirectoryIndex index.php
# ...other settings...
</Directory>
</VirtualHost>