Dear Voltron

I'm using vhosts on my install as well. Looking again at your config you
need to move the exclusions back above the proxypass (I know you had it that
way before)  You also need to tell apache where to find the folders using
the alias and directory directive.  so your vhosts section should look
something like this (note I only left the public folder section in it, but
you get the idea):

<VirtualHost *>

        ServerName localhost
    DocumentRoot C:/xampp/apache/htdocs
    <Directory C:/xampp/apache/htdocs>
    Order allow,deny
    Allow from all
    </Directory>

         Alias /public D:/Projects/Pylons_projects/testapp/testapp/public

    <Directory D:/Projects/Pylons_projects/testapp/testapp/public>
    Order allow,deny
    Allow from all
    </Directory>

     ProxyRequests Off
     <Proxy *>
            Order deny,allow
            Allow from all
        </Proxy>

        ProxyPass /public !

        ProxyPass / http://localhost:5000
        ProxyPassReverse / http://localhost:5000



        ErrorLog logs/test-error_log
    CustomLog logs/test-access_log combined

        <Location /balancer-manager>
                SetHandler balancer-manager

                Order Deny,Allow
                Deny from all
                Allow from all
        </Location>
</VirtualHost>

Let me know is this helps
Jose

On 7/10/07, voltron <[EMAIL PROTECTED]> wrote:
>
>
> Hmm, that means I would not need to exclude the stic file folders in
> my Apache configuration. How should I go about this? I have not found
> the place where the templates read the folders for static content.
>
> Thanks
>
> On Jul 10, 9:53 pm, "Mike Orr" <[EMAIL PROTECTED]> wrote:
> > On 7/10/07, Philip Jenvey <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> >
> > > On Jul 10, 2007, at 11:17 AM, voltron wrote:
> >
> > > > According to the docs, os.path.join does throw the drive letters
> away:
> >
> > > >http://docs.python.org/lib/module-os.path.html
> >
> > > > I still think that it would be cool if there was a platform
> > > > independent way in Pylons for doing this. Another thing, it would
> also
> > > > be nice if one could use several static paths instead of one, just
> > > > like the templates dict.
> >
> > > > Could the Pylons developers  comment on this?
> >
> > > I'm not sure I understand all the details. It sounds like the
> > > os.path.join of root_path and 'public' (or you renamed to to
> > > 'static') causes an issue on your environment because os.path.join
> > > removes drive letters and your app is deployed on the D: drive?
> >
> > > os.path.join doesn't appear to mess with drive letters for me:
> >
> > > Python 2.4.4 (#71, Oct 18 2006, 08:34:43) [MSC v.1310 32 bit (Intel)]
> > > on win32
> > > Type "help", "copyright", "credits" or "license" for more information.
> > >  >>> import os
> > >  >>> os.getcwd()
> > > 'C:\\Python24'
> > >  >>> os.path.join(os.getcwd(), 'static')
> > > 'C:\\Python24\\static'
> >
> > The docs are talking about a drive letter in the second argument.  In
> > that case, the drive in the first argument would be discarded, as it
> > should be, because os.path.join allows absolute paths on the right to
> > override paths on the left.
> >
> > The tricky thing with windows is that "C:\\foo" is absolute but
> > "C:foo" is drive-relative, so join would have to do some extra magic
> > to ensure the latter case is correct.  But it sounds like the
> > developers understand the difference.
> >
> > However, Voltron can replace the entire os.path.join expression with a
> > different absolute path taken from the config file.
> >
> > --
> > Mike Orr <[EMAIL PROTECTED]>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to