Re: ScriptAlias/cgi-bin for apache instance on port 8080

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

 



AddHandler cgi-script .cgi .pl .py

in your case for python scripts


On Thu, Nov 15, 2012 at 9:16 AM, Igor Cicimov <icicimov@xxxxxxxxx> wrote:



On Thu, Nov 15, 2012 at 5:14 AM, Tim Johnson <tim@xxxxxxxxxxxxx> 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-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