AddHandler cgi-script .cgi .pl .py

in your case for python scripts


On Thu, Nov 15, 2012 at 9:16 AM, Igor Cicimov <icici...@gmail.com> wrote:

>
>
>
> On Thu, Nov 15, 2012 at 5:14 AM, Tim Johnson <t...@akwebsoft.com> wrote:
>
>> I have made some tweaks to httpd.conf without
>>   success
>>   Here's what I have :
>>      # for port 8080
>>     <VirtualHost *:8080>
>>         DocumentRoot "/Users/http"
>>         ScriptAlias /cgi-bin/ "/Users/http/run/"
>>         ScriptAliasMatch ^/cgi-bin/((?!(?i:webobjects)).*$)
>> "/Users/http/run/$1"
>>         <Directory "/Users/http/run">
>>             AllowOverride None
>>             Options None
>>
>
> This is wrong, it should be
>
> Options +ExecCGI
> AddHandler cgi-script .cgi .pl
>
> you need to tell apache that the files in that directory are cgi scripts.
> Please read
>
> http://httpd.apache.org/docs/2.2/howto/cgi.html
>
> its all in there.
>
>
>
>
>>             Order allow,deny
>>             Allow from all
>>         </Directory>
>>     </VirtualHost>
>>     # end port 8080
>> These are the same settings as for the default (port 80) settings.
>> However, something is still lacking.
>> If I point my browser to
>> http://localhost/cgi-bin/cgitest.py
>> I get the output I expect.
>> If I point my browser to
>> http://localhost:8080/cgi-bin/cgitest.py
>> I still get a Not Found error.
>>
>> /usr/sbin/apachectl configtest
>> gives me "Syntax OK"
>> thanks
>> --
>> Tim
>> tim at tee jay forty nine dot com or akwebsoft dot com
>> http://www.akwebsoft.com
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
>>
>

Reply via email to