Opened 11 years ago

Last modified 10 years ago

#24 new defect

Python package needs cgi-bin/apache support

Reported by: warmerdam Owned by: osgeo4w-dev@…
Priority: major Component: Package
Version: Keywords: pkg-python
Cc:

Description

The pkg-python should create a httpd.d\http_python.conf file to set PYTHONPATH similar to the .ini file. The contents should look something like:

AddType application/x-httpd-python .py
Action  application/x-httpd-python /cgi-bin/python.exe

SetEnv PYTHONHOME "C:\OSGeo4W\apps\Python25"

This would ensure that python cgi's work smoothly if apache is install. No dependency on apache needed though.

Change History (1)

comment:1 Changed 10 years ago by dsampson

The file should infact be httpd.d\httpd_python.conf (missing the second 'd')

Just tried this hack and it exposed a python cgi script stub.

Thanks for the original post.

perhaps if I release my script then I will provide the required patch.

Cheers

Note: See TracTickets for help on using tickets.