On 02/01/07, Bogdan Hlevca <[EMAIL PROTECTED]> wrote:
If I type in browser www.mysite.org:8082/users it gets redirected to localhost:8082/users/ and I get an error since I am not working on the local machine, but if I type directly www.mysite.org:8082/users/ it goes to the right page. Is this a bug, or is my configuration bad?
It's configuration. As I just replied to someone else mere seconds ago: If it's redirecting you to localhost, that's generally a sign that you need to sort out your base url filter settings. Something like this at the bottom of your app.cfg: [/] base_url_filter.on = True base_url_filter.use_x_forwarded_host = True Ed PS It happens because the address /users raises a redirect to the address /users/ but doesn't know what address the site is running at, so it redirects the user to localhost. You can either specify the baseurl, or preferably use the x_forwarded_host option. This works fine in Apache 2.0, but I have an inkling there may be some sort of problem in Apache 1.x, but I can't remember (haven't used my computer in four weeks and have forgot 99% of what I knew last year). --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

