I'm writing a simple "Hello world" with apache and web.py. The app works when I go to
http://sandbox-dev.com/webapp/
but not when I go to:
http://sandbox-dev.com/webapp
My intuition (clearly wrong) was that the following code would have matched either of these addresses.
import sys, os
abspath = os.path.dirname(__file__)
sys.path.append(abspath)
os.chdir(abspath)
import web
urls = (
'/.*', 'hello',
)
class hello:
def GET(self):
return "Hello, web.py world."
application = web.application(urls, globals()).wsgifunc()
What do I need to change in order to match both of these?