Apache web server and CGI
export at hope.cz
Wed Aug 11 21:57:58 CEST 2004
Peter van Kampen <news at woody.datatailors.com> wrote in message news:<slrnchk875.p2u.news at woody.datatailors.com>...
> In article <81a41dd.0408101143.43fea836 at posting.google.com>, Lad wrote:
> >> <Directory /usr/lib/cgi-bin/>
> >> AllowOverride None
> >> Options ExecCGI
> >> Order allow,deny
> >> Allow from all
> >> </Directory>
> > Thanks Peter for help. Now I can run cgi scripts in default
> > c:/program files/apache group/apache/cgi-bin/
> > directory.
> > The problem was that there was not last "/"
> > But how can I forced the Apache to allowed to run scripts in a
> > different directory for example C:\Test\MyScripts\
> I would guess you have something like the above in your httpd.conf
> ScriptAlias /cgi-bin/ c:/program files/apache group/apache/cgi-bin/
> <Directory c:/program files/apache group/apache/cgi-bin/>
> AllowOverride None
> Options ExecCGI
> Order allow,deny
> Allow from all
> Simply replace c:/program files/apache group/apache/cgi-bin/ with
Peter, Thanks a lot. Now it works, but the scripts must be still
http://localhost/cgi-bin/test2.py eventhough the scripts are not
/cgi-bin/ directory but in MyScripts directory. I think that Apache
maps MyScripts directory to /cgi-bin/ directory.
Thanks again for help
More information about the Python-list