On 09/15/2010 10:35 AM, Fabien Potencier wrote:
On 9/15/10 3:22 AM, Josh wrote:
How do a setup a VirtualHost for Symfony2? There is no virtualhost
examples anywhere, and it's vastly different from 1.x..

There is nothing special to do, just create a classic virtualhost.

Don't want to use the sandbox either.

Why?

Here is my example for /etc/apache/sites-enabled/project

<VirtualHost *:80>
  ServerName www.project.de.localhost
  DocumentRoot "/var/www/project/web"
  DirectoryIndex index.php
<Directory "/var/www/project/web">
    AllowOverride All
    Allow from All
</Directory>

  Alias /sf /opt/symfony/data/web/sf
<Directory "/var/www/project/lib/vendor/symfony/data/web/sf">
    AllowOverride All
    Allow from All
</Directory>
</VirtualHost>


Important - you have to add this line in /etc/hosts

127.0.0.1 www.project.de.localhost



--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to