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 / ? Also, there's a typo in your rendition of 'lcoalhost' [sic] above - is that important, or just an email typo? > 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 - 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. -- Asheesh. -- Must be over 18. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

