Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > httpd.conf configuration for mod_wsgi.so on wamp (apache)?

Reply
Thread Tools

httpd.conf configuration for mod_wsgi.so on wamp (apache)?

 
 
wojciech777
Guest
Posts: n/a
 
      11-05-2011
Hi there.

Is there any way to run python web application (or simple web page in
web.py) on Windows with wamp without starting built-in wsgi server
manually (python run.py).

I know there's a documentation on http://webpy.org/install#apachemodwsgi,
but it doesn't show where exactly in httpd.conf I should place the
commands.

In my example I would like to get start page, simply by typing in my
browser e.g. http://localhost:8070, and my file is located in: c:/
wamp/
www/xaura/run.py

source of run.py:
#!/usr/bin/env python
import web
urls = ('/', 'hello',
'', 'hello')
class hello:
def GET(self):
return "Hello, world."
app = web.application(urls, globals())
if __name__ == "__main__": app.run()

Any help will be appreciated.
Thanks
Wojciech Kaźmierczak
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: WAMP config issue Malcolm NZ Computing 1 06-30-2007 12:01 AM
Re: WAMP config issue Malcolm NZ Computing 3 06-29-2007 09:52 AM
Re: WAMP config issue Malcolm NZ Computing 6 06-27-2007 06:10 AM
WAMP config issue CollectorNZ NZ Computing 6 06-25-2007 01:20 AM
mod_python fails to load under wamp Gaurav Agarwal Python 5 07-11-2006 08:20 AM



Advertisments