On 9/24/07, Asheesh Laroia <[EMAIL PROTECTED]> wrote:
>
> On Mon, 24 Sep 2007, Lukasz Szybalski wrote:
>
> >
> > On 9/24/07, Asheesh Laroia <[EMAIL PROTECTED]> wrote:
> >>
> >> On Mon, 24 Sep 2007, Lukasz Szybalski wrote:
> >>
> >>>

> >>> Hello,
> >>> I am trying to redirect url to my turbogears app.
> >>>
> >>> I have the app working on port 8081
> >>>
> >>> I have added this code to my httpd.conf but it doesn't work
> >>>
> >>> RewriteEngine On
> >>> RewriteRule ^/users/(.*) http://127.0.0.1:8081/users/$1 [P]
> >>>
> >>> Modrewrite is enabled.
> >>> start-users.py prod.cfg is running properly.
> >>>
> >>> Why is http://lcoalhost/users not working?
> >>
> >> Hint: http://localhost/users/ will work.
> >>
> >> Your rewrite rule requires a trailing slash.
> > That didn't work.
>
> Can you replace the mod_rewrite stuff with just using ProxyPass?  I find
> that way simpler.  Also, why redirect only /users/ and not / ?
>

I have a fully functioning website therefore I only need to redirect
the part that will be hosted via turbogears aka /users/

> Also, there's a typo in your rendition of 'lcoalhost' [sic] above - is
> that important, or just an email typo?
Just an email typo sorry.
>
> > Where do I put this code. I don't want to put it in .htaccess so does
> > it go into:
> > httpd.conf?
> > apache.conf
> > sites-available? enabled?
> > does it go into <directory><location><vitual host>????
>
> ????
>
> Start by putting it in /etc/apache2/sites-enabled/000-default (assuming
> you're using Debian).
>
> http://www.debian-administration.org/articles/101 is a good introduction
> to configuring Apache2 on Debian.  But tell me where you're getting your
> ideas -

 How to deploy a TurboGears application with Apache and mod_rewrite
http://www.hostingrails.com/forums/wiki_thread/20

like URLs that you're reading that tell you to use this
> RewriteRule - and it would help me out a lot.  You seem unsure of what
> you're doing, so you're probably trying to follow some instructions
> somewhere - let me know which ones.

I'll check the suggestion that Eric gave tonight and see if it works.

As fas as me asking these question here is because I am deploying a
turbogears app under apache and apache mailing list might be a good
place to ask things about apache, but they won't know anything about
turbogears specific stuff apache configurations. So instead of me
asking somewhere else I am asking here since somebody on this list had
to use apache with turbogears and know what settings they used and
where.


Thank you.
Lucas

ps. Was anybody able to get the turbogears working with mod_python? I
tried the instruction we have on a website few weeks back but they
didn't work?

--
TurboGears from start to finish:
http://www.lucasmanual.com/mywiki/TurboGears

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

Reply via email to