.htaccess in root folder :

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ! ^/web/*
RewriteRule  .* /web [QSA, L]

Or something like this


2009/10/16 Davide Borsatto <lloy...@gmail.com>

>
> I'm pushing for this... For a very long time.. :)
> Something will change (soon I hope), but for this project, we're still
> using that hosting. Let's say this is a "temporary solution", waiting
> for better times. :)
>
> On Oct 16, 9:47 am, Gareth McCumskey <gmccums...@gmail.com> wrote:
> > Why not consider an alternative hosting? If you like to fiddle and mess
> > around, I use a service called Linode that allows me to setup my own
> server
> > with the software I want and full root access to my machine, etc. Pretty
> > much they give you a virtualised machine, you install the OS, and all
> other
> > software and then transfer domain when you're ready for it.
> >
> >
> >
> > On Fri, Oct 16, 2009 at 9:18 AM, Davide Borsatto <lloy...@gmail.com>
> wrote:
> >
> > > I don't have multiple connections or something like that :)
> >
> > > The point is that my crappy company hosting does not allow me to put
> > > stuff outside the default root directory (httpdocs in my case), so i
> > > have to leave the file "public". Writing the connection parameters in
> > > PHP would be a solution, but now comes in my mind that I could tell
> > > apache not to allow to enter that directory... :)
> >
> > > On Oct 15, 4:16 pm, Gareth McCumskey <gmccums...@gmail.com> wrote:
> > > > So for a fuller example:
> >
> > > > databases.yml:
> >
> > > > all:
> > > >   propel:
> > > >     class: sfPropelDatabase
> > > >     param:
> > > >       dsn: 'mysql://pinpoint:p1np0...@196.37.40.73/pinpoint'
> >
> > > >   somedomain.org:
> > > >     class: sfPropelDatabase
> > > >     param:
> > > >       dsn: 'mysql://pinpoint:p1np0...@localhost/pinpoint'
> >
> > > >   somedomain.com:
> > > >     class: sfPropelDatabase
> > > >     param:
> > > >       dsn: 'mysql://pinpoint:p1np0...@196.37.40.73/pinpoint'
> >
> > > > In your Model classes overwrite calls to database by putting inside
> the
> > > > file:
> >
> > > > TableNamePeer
> >
> > > > public static function doSelect(Criteria $criteria, $con = null)
> > > > {
> > > >     parent::doSelect($criteria,
> Propel::getConnection(str_replace("www.",
> > > > "", sfRequest::getHost())));
> >
> > > > }
> >
> > > > On Wed, Oct 14, 2009 at 5:47 PM, Carlos Jorge Andrade <
> >
> > > > carlos.andr...@gmail.com> wrote:
> >
> > > > > On 14, Oct 2009, at 13:48 , Gareth McCumskey wrote:
> >
> > > > > > First thing that goes through my mind is why you would want to do
> > > > > > that? databases.yml is where all database connections are defined
> > > > > > and you can create as many as you like in there.
> >
> > > > > Imagine the exact same codebase to power two different sites.
> > > > > Like somesite.com and somesite.org, one document root... depending
> on
> > > > > the domain accessed, the db connection would change. How would one
> do
> > > > > that ?
> >
> > > > >
> http://www.lampjunkie.com/2008/04/using-multiple-databases-in-symfony.
> > > ..
> >
> > > > > > On Wed, Oct 14, 2009 at 1:04 PM, Davide Borsatto <
> lloy...@gmail.com>
> > > > > > wrote:
> >
> > > > > > Hi everybody,
> >
> > > > > > Is there a way to specify the connection parameters (those
> normally
> > > > > > specified in databases.yml) via PHP? Maybe in the
> > > ProjectConfiguration
> > > > > > class, but how?
> >
> > > > > > --
> > > > > > Gareth McCumskey
> > > > > >http://garethmccumskey.blogspot.com
> > > > > > twitter: @garethmcc
> >
> > > > --
> > > > Gareth McCumskeyhttp://garethmccumskey.blogspot.com
> > > > twitter: @garethmcc
> >
> > --
> > Gareth McCumskeyhttp://garethmccumskey.blogspot.com
> > twitter: @garethmcc
> >
>


-- 
Alexandre Salomé -- alexandre.sal...@gmail.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