|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hello ALL,
I used to configure the CGI script with Apache websever on Windows platform, but when I go for Red Hat platform, it seems doesn't work according to what I used to configure on the Windows platform. I try to add the followin information on the httpd.conf files on /usr/local/ apache2/conf/httpd.conf path, I don't change anything during the installation--all default setting. <IfModule mime_module> TypesConfig conf/mime.types AddHandler cgi-script .cgi .pl </IfModule mime_module> and <Directory /> Option FollowSymLinks +ExecCGI Allowoverride None </Directory> on the directory and DirectoryIndex index.html index.cgi I have created 2 directories on /var/www/html/test-1, and /var/www/ html/test-2 and all the files permission is set to all executive, read, and write... but I still can't run the test.cgi script, it only display all the softcode for me when I browse through the http://localhost/test-1/ test.cgi Thank you, Phally |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
"Phally" <betterdie@gmail.com> schreef in bericht
news:1170692840.249751.253970@j27g2000cwj.googlegr oups.com... > Hello ALL, > > I used to configure the CGI script with Apache websever on Windows > platform, but when I go for Red Hat platform, it seems doesn't work > according to what I used to configure on the Windows platform. I try > to add the followin information on the httpd.conf files on /usr/local/ > apache2/conf/httpd.conf path, I don't change anything during the > installation--all default setting. > > <IfModule mime_module> IIRC syntax is :<IfModule mod_mime.c> > TypesConfig conf/mime.types > AddHandler cgi-script .cgi .pl > </IfModule mime_module> </IfModule> will do Dropping <IfModule ...> and </IfModule> should not harm or prove mod_mime is not loaded > and > > <Directory /> For security avoid running scripts located outside the site: <Directory /var/www/html/> would be better. > Option FollowSymLinks +ExecCGI Mixing prefixed and prefixless directive is not appriceated, try Options FollowSymLinks ExecCGI Check for more Option directives, they may conflict or undo this setting > Allowoverride None > </Directory> > on the directory > but I still can't run the test.cgi script, it only display all the > softcode for me when I browse through the http://localhost/test-1/ > test.cgi Don't let the browser's cache fool you ;-) HansH |
|
![]() |
| Outils de la discussion | |
|
|