Skip to content

Instantly share code, notes, and snippets.

@marlenesco
Last active April 11, 2018 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save marlenesco/460942ae5ef44fb25faf335a81265192 to your computer and use it in GitHub Desktop.
Save marlenesco/460942ae5ef44fb25faf335a81265192 to your computer and use it in GitHub Desktop.
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