-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/26/2011 08:23 AM, César wrote:
> 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...

Here is the apache config I use with my little example app:

https://github.com/DaGoodBoy/webpy-example/blob/master/postinstall/webpy-config

It is an example app that runs web.py under Debian/Ubuntu and can be
installed as a deb package. Check out the README here:

https://github.com/DaGoodBoy/webpy-example

Keep in mind you'll need some additional / newer packages not included
in the Ubuntu or Debian repositories. Hope this helps!

Tony
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNtvVpAAoJEAPVzrg8Oofbi5kH/0O4bzE6DP1IsFucIWuXHraJ
YpgwB3O/U04ObHwkY43YONm/LHpxz3Tb4aGST4o6yKtIyxJF8aZivnC1EMG/ZpGe
p5uUUn7RAPqOBM7mj/BiYLaZpllX+24vDL4gmZDKJ4iSW26ahmv6vtec2D7BY1sM
Im1bw/5AlUmDJqe1cZjMPvnWE5kYYAJ9cLu3BhrD8c8vwI8OHkkP1BtnMzRsYc/A
fZIYWEODQVIwDqvGPB1ABh4NSoMiLcPrMQh9O83OhfJe3Oe4Cjy6hPrwpK/I0137
fOCI8ergVcYPV0e1eCnsZaWHJaPMrPC5vwgacFTYkiaHWH64OR34OVT66roebVE=
=1M/L
-----END PGP SIGNATURE-----

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