Archive for Thursday, 27th January 2011

| 27/01/2011, 12:29 Serving multiple Symfony apps from one project with one vhost

I have created this simple three step approach for a Symfony project to switch application contexts while respecting the desire to have a global project-wide config file, vhost and default mod_rewrite configuration.  

1. /config.php:

define('URI_ROOT', '/project/web/');
define('MY_ENV', 'dev');
define('MY_DEBUG', true);

$apps = array(
              'default' => 'frontend',
              'admin' => 'backend'
              );

 

Read More...