Last active
April 11, 2018 12:19
-
-
Save marlenesco/460942ae5ef44fb25faf335a81265192 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSTALL SYMFONY APP IN A SUBFOLDER OF AN EXISTING SITE | |
http://www.yegods.it/2015/01/30/install-symfony-app-in-a-subfolder-of-an-existing-site/ | |
Here a solution using virtual host Alias: | |
<VirtualHost *:80> | |
DocumentRoot "/var/www/html/vhosts/example.com/public_html" | |
ServerName www.example.com | |
<Directory "/var/www/html/vhosts/example.com/public_html"> | |
Options Indexes FollowSymLinks | |
AllowOverride All | |
Order allow,deny | |
Allow from all | |
</Directory> | |
Alias /myapp /var/www/vhosts/other-folder/symfonyapp | |
<Directory "/var/www/vhosts/other-folder/symfonyapp"> | |
Options Indexes FollowSymLinks | |
AllowOverride All | |
Order allow,deny | |
Allow from all | |
</Directory> | |
</VirtualHost> | |
Remove - cssrewrite filter (for assetic configuration) if css is compiled. | |
That's all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment