RE: Problem with CGI script

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

 



>You need to scope the SetHandler/AddHandler to just the things that

>are actually CGI.  Check the manual.

 

If you mean this topic (https://wiki.apache.org/httpd/DirectoryAsScript) , I already have read that. But don’t know how to apply that to my case.

 

Currently, I have

<Directory /var/www/html/rocks/7.0>

        Options FollowSymLinks Indexes ExecCGI

        AllowOverride None

        Order allow,deny

        Allow from all

</Directory>

<Directory /var/www/html/rocks/7.0/install/rolls>

        SetHandler cgi-script

        DirectoryIndex index.cgi

        Allow from all

</Directory>

 

 

According to that document,  I have to replace ScriptAlias  with something else. However, I don’t have such thing! So, I changed that to

 

<Directory /var/www/html/rocks/7.0>

        AddHandler cgi-script cgi py

        Options FollowSymLinks Indexes ExecCGI

        AllowOverride None

        Order allow,deny

        Allow from all

</Directory>

<Directory /var/www/html/rocks/7.0/install/rolls>

        SetHandler cgi-script

        DirectoryIndex index.cgi

        Allow from all

</Directory>

 

 

But the error is still present.

Please let me know which document do you mean.

 

Regards,

Mahmood

 

 

 


[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