Hi, I think you need a ServerName directive in bot virtual hosts see
below.
hope it helps, cheers Marco

<VirtualHost *:80>
 ServerName yourSubDom.localhost
 DocumentRoot "/home/path/web"
 DirectoryIndex index.php
 <Directory "/home/path/web">
   AllowOverride All
   Allow from All
 </Directory>

 Alias /sf /home/path/lib/vendor/symfony/data/web/sf
 <Directory "/home/path/lib/vendor/symfony/data/web/sf">
   AllowOverride All
   Allow from All
 </Directory>
</VirtualHost>


On Jul 8, 9:39 pm, Jean-Philippe Langlois
<[email protected]> wrote:
> Yes it is what I try first, but it always select the first vhost. Look at
> the apache log:
>
> "VirtualHost 10.10.1.87:80 overlaps with VirtualHost 10.10.1.87:80, the
> first has precedence, perhaps you need a NameVirtualHost directive"
>
> Jean-Philippe Langlois
>
> On Wed, Jul 8, 2009 at 3:33 PM, rooster (Russ) <[email protected]> wrote:
>
> > You need virtual hosts... it depends on your system regarding the
> > setup, but if you google for "apache virtual host" you should get a
> > ton of stuff.
>
> > Shout back if you have any problems with it.
>
> > On Jul 8, 3:04 pm, JPL <[email protected]> wrote:
> > > Hi I try to use two symfony on the same server. I only have one IP
> > > available and one domain name. How can I configure Apache to use
> > > subdomain name redirection.
>
> > > ex:
>
> > > sub1.mydomain.com to symfony1
> > > sub2.mydomain.com to symfony2
>
> > > Thanks for your help !
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to