New to webpy.
Made a trivial program:
------- index.wsgi
import web
urls = (
'/', 'hello',
'/bye', 'bye',
'/tst', 'test')
application = web.application(urls, globals(),False).wsgifunc()
class hello:
def GET(self):
return 'Hello, web!'
class bye:
def GET(self):
return 'Bye, web!'
class test:
def GET(self):
return 'test class'
if __name__ == "__main__":
app.run()
--------
If I point
WSGIScriptAlias / /usr/home/WWW/test/index.wsgi
it works with
/
/bye
/tst
However if I do
WSGIScriptAlias /tst /usr/home/WWW/test/index.wsgi
WSGIScriptAlias / /usr/home/WWW/test/index.wsgi
The URL /tst fails with a "not found" (404 error)
I thought maybe I was doing something with the WSGI setup, but I put a test
WSGI script that outputs all environment variable to the browser and
WSGIScriptAlias /tst /usr/home/WWW/test/test.wsgi
Worked fine.. so the issue seems to only be with webpy.
Any pointers greatly appreciated.
Main reason I am trying to have multiple WSGIScriptAlias is so as I do
different tests I can easily diff programs and see I changes from one
program to the next while I do tutorials and play with templates..
--
You received this message because you are subscribed to the Google Groups
"web.py" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/webpy/-/sJEA33fU074J.
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.