The following directive need to be added to your sites VirtualHost entry in order for Symfony to function correctly.
Edit your DocumentRoot:
This goes right at the end:
Alias /sf "/usr/share/pear/data/symfony/web/sf/"
Here's the whole kit for WAMP on Windows:
<VirtualHost *:80> ServerName yoursite.localhost DocumentRoot "C:/home/yoursite/web" DirectoryIndex index.php Alias /sf C:/wamp/php/PEAR/data/symfony/web/sf <Directory "C:/wamp/php/PEAR/data/symfony/web/sf"> AllowOverride All Allow from All </Directory> <Directory "C:/home/yoursite/web"> AllowOverride All Allow from All </Directory> </VirtualHost>
Also, if you're working on windows don't forget to add an entry to your windows hosts file:
Lastly, to get make multiple host names to work in apache, you need to enable the NameVirtualHost directive so that apache will find each VirtualHost entry by what's typed in the clients browser. Just add the following above all your VirtualHost entries in your conf file: