[CentOS] CGI configuration - second post

Ralph Angenendt ra+centos at br-online.de
Fri Oct 17 10:49:54 UTC 2008

tech wrote:
> If I run either of these scripts from a browser using www.domain.com it  
> fails. If I run it from a browser using  
> www.domain.com/cgi-bin/install.cgi or  
> www.domain.com/cgi-bin/techtest.cgi it works.

Yes. Look at ScriptAlias in the config. And at the SELinux contexts in
that directory.

> I have tried using a one line index.shtml file with that one line being  
> either <!--#include virtual="/cgi-bin/install.cgi"--> or <!--#exec  
> cgi="/cgi-bin/install.cgi"--> and they both fail.


Calling www.domain.com/cgi-bin/install.cgi is the correct way, using SSI
together with cgi scripts calls for trouble.

And next time you ask something please include *error* messages.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.centos.org/pipermail/centos/attachments/20081017/2877d4d3/attachment.sig>

More information about the CentOS mailing list