example-com (frontend)
example-com/backend(backend)
Meine Verzeichnisstruktur ist folgende.
- Code: Select all
www/app/frontend/web
www/app/backend/web
Ich habe es jetzt mal so gemacht und das funktioniert auch aber ich möchte wissen ob es noch eine andere Möglichkeit gibt.
- Code: Select all
<VirtualHost 127.0.0.1:80>
ServerName fewo_yii2_advanced
ServerAlias 127.0.0.1
DocumentRoot c:/www/app/frontend/web
Alias /backend /www/app/backend/web
<Directory c:/www/app/backend/web>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
DirectoryIndex index.php
</Directory>
<Directory c:/www/app/frontend/web>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
DirectoryIndex index.php
</Directory>
</VirtualHost>