Re: apache cgi-bin

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

 



On Mon, Feb 20, 2006 at 07:37:24 -0500,
  Jeff Ratliff <jefrat@xxxxxxxx> wrote:
> Apache, by default, will not run an html file as a cgi script. Try changing the
> script from *.html to *.cgi and see if that works. If it does, and you really
> need to use cgi scripts with a .hmtl extension, you'll have to edit the 
> 
> AddHandler cgi-script .cgi
> 
> line in httpd.conf, and add .html to the end. You may be better off just
> getting into the habit of using a .cgi extension on your scripts. 

If you have a mixture of html and cgi, you can use rewriterule directives
to match pattern.html to cgi script(s), so that the end users only see
files ending in .html.

Also as otherwise noted, you have to both modify the apache conf to allow
scripts to run in the html directory and change the security context of
the script files if you are running selinux.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux