http://webpy.org/cookbook/mod_wsgi-apache
like this, it works

On Tue, Apr 26, 2011 at 8:23 PM, César <[email protected]> wrote:

> Hi,
>
> I'm trying to set up web.py with ubuntu, apache and wsgi.
> Apache is just set, so it has its default configuration. I just added
> what is told in the tutorial to the "default" file, in the "sites-
> available" folder:
>
> <Files code.py>
>    SetHandler wsgi-script
>    Options ExecCGI FollowSymLinks
> </Files>
>
> Also, the script that I'm trying is the usuall hello world that you
> can find in the web.py main page (adding at the end of it "application
> = app.wsgifunc()" to make it work with wsgi).
>
> Thing is, when I try to access localhost/code.py/ the browser doesn't
> execute the file, it just opens the usual open file/save file dialog,
> so no wsgi interpreter is being set. However, if I access localhost/
> code.py it tries to execute the file, but it shows the "not found"
> error. I'm not an expert with these configuration issues, so I'm quite
> stuck with this...
>
> Thanks in advance!
> Cesar.
>
> --
> 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.
>
>


-- 
新浪微博:http://t.sina.com.cn/qichangxing
腾讯微博:http://t.qq.com/qichangxing
python.cn(news, jobs) http://simple-is-better.com
办公室创意生活 http://office.simple-is-better.com/

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