Re: Testing Python Mod

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/4/07, Chris Howell <chowell@xxxxxxxxxxxxxxxxxxx> wrote:
>

> Brian:
> I made the modifications you suggested my httpd conf file now has this
> entry in it.
>
>  LoadModule python_module modules/mod_python.so
>
>  <Directory "C:/Program Files/Apache Software
> Foundation/Apache2.2/htdocs/Test">
>     Order deny,allow
>     Satisfy all
>     AddHandler mod_python .py
>     PythonHandler mod_python.publisher
>     PythonDebug On
>  </Directory>
>
>  My test.py file looks like.
>
>      def world(req):
>         return "Hello World"
>
>  When I try to access it like
>  http://localhost:9000/Test/test.py/world
>
>  I get a 404.
>
>  Any other ideas ?
>

At least you are getting a new kind of error!

Well, it isn't exactly like I suggested, but I tried your
configuration (you have a 'Listen 9000' in your httpd.conf, right?)
and everything worked fine for me.

I know this is a pain, but comment out the <Directory> </Directory>
related to the mod_python stuff, restart apache and see if you still
get the 404 when trying to hit

http://localhost:9000/Test/test.py

You should get the raw python code rendered in your browser.

-- brian

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux