Apache web server and CGI
Lad
export at hope.cz
Wed Aug 11 15:57:58 EDT 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
> </Directory>
>
> Simply replace c:/program files/apache group/apache/cgi-bin/ with
> C:\Test\MyScripts
>
> Hth,
>
> PterK
Peter, Thanks a lot. Now it works, but the scripts must be still
started as
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
Lad
More information about the Python-list
mailing list