I want to install webpy on my local machine.

It is a LAMP server installed on Ubuntu 10.10. I was able to serve
pages by placing index.php in www folder so I assume Apache and PHP
are working fine.

I installed webpy using easy_install.

Installed mod_wsgi using the synaptic package manager

I created a simple code.py copying the code on web.py homepage. When I
open
http://127.0.0.1/code.py/
Note the trailing slash included, I get a not found error
----------------------------------------------------------------------------------------
Not Found

The requested URL /code.py/ was not found on this server.
Apache/2.2.16 (Ubuntu) Server at 127.0.0.1 Port 80
-----------------------------------------------------------------------------------------

I have followed the command at http://webpy.org/install#apachemodwsgi
and terminated my file accordingly
----------------------------------------------------------------------------------------
import web

urls = (
    '/(.*)', 'hello'
)
app = web.application(urls, globals())

class hello:
    def GET(self, name):
        if not name:
            name = 'World'
        return 'Hello, ' + name + '!'

app = web.application(urls, globals(), autoreload=False)
application = app.wsgifunc()
----------------------------------------------------------------------------------------

the www also contains the required .htaccess file. Both code.py
and .htaccess have 755 permission although they are owned by root.

Where did I go wrong ? Please help

Cheers
PK


-- 
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