Hello,

I have a question concerning the following problem. My application
contains the following snipplet:

...
urls = (
  '/' , 'IndexClass',
  '/subscribe', 'SubscriptionClass',
  '/unsubscribe', 'UnsubscriptionClass'
)
...

On the command line: python application.py 5000

Accessing the application on the web at 
http://domain:5000/{subscribe,unsubscribe}
works perfectly.

Now I've put the application unmodified behind a proxy server, e.g.
with the following rule: Pass all requests to http://domain/sample to
127.0.0.1:5000 (the web.py application). But it gives a "not found"
message.

So I modified "urls" to

urls = (
  '/sample' , 'IndexClass',
  '/sample/subscribe', 'SubscriptionClass',
  '/sample/unsubscribe', 'UnsubscriptionClass'
)
...
This works for '/sample' but not anymore for all subsequent URIs. And
IMO modifying the URI scheme is not a good solution.

In PHP it's possible to set BASEURL or similar but i can't find a way
to mimic this behaviour in webpy.

Any hints?

Thanks in advance.

Karsten


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

Reply via email to