any links I could look at to see how to use it?
Jose
Philip Jenvey wrote:
> On Aug 7, 2006, at 1:30 AM, Jose Galvez wrote:
>
> >
> > Sorry I should be saying prefix not proxy
> > Jose
> >
> > Jose Galvez wrote:
> >> I found some text here:
> >> http://groups.google.com/group/pylons-discuss/browse_thread/thread/
> >> c18e56c566cc1696/473011f3e3b1d153?
> >> lnk=gst&q=prefix&rnum=1#473011f3e3b1d153
> >> is this the best way to handle proxy and static pages?
> >> Jose
> >>
> >> Jose Galvez wrote:
> >>
> >>> Ok looking through the list I found the proxy command for the ini
> >>> file,
> >>> wich works great for the dynamic stuff, but what do I do to get the
> >>> static stuff to work?  I think I can move most of the static
> >>> stuff to
> >>> apache, but some if it needs to be under pylons.  Any thoughts?
> >>> Jose
> >>>
> >>> Jose Galvez wrote:
> >>>
> >>>
> >>>> I've got a question about connecting pylons with apache.  the two
> >>>> methods I'm trying are simple proxypass and scgi, with both of
> >>>> these
> >>>> methods I would like to connect my application to apache under a
> >>>> "location" called virtualslides
> >>>>
> >>>> with proxy pass I've tried:
> >>>>
> >>>> <location /virtualslides>
> >>>>     ProxyPass http://localhost:6500
> >>>>     ProxypassReverse http://localhost:6500
> >>>> </location>
> >>>>
> >>>> with scgi I've tried
> >>>> SCGIMount /virtualslides 127.0.0.1:6500
> >>>>
> >>>> The issue comes in when I try to create a url with link_to
> >>>> the code h.link_to(name h.url(conroller=main, action=list))
> >>>> returns an absolute url http://localhost/main/list rather then
> >>>> what I
> >>>> need which would be htto://localhost/virtualslides/main/list.
> >>>>
> >>>> I've got plenty of pretty complex urls written already using the
> >>>> link_to
> >>>> syntax so the less real experimenting I have to do the less
> >>>> likely I'll
> >>>> be of messing up a page someplace.  Thanks
> >
>
> There are problems with using the prefix = directive in the config
> file -- it doesn't correctly set the environment's SCRIPT_NAME.
>
> The preferred method of forcing the prefix is to use the newer
> PrefixMiddleware in the paste.deploy.config module. I'm not sure
> about the static files problem you're having. PrefixMiddleware might
> solve it.
> 
> --
> Philip Jenvey


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to