httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BAO RuiXian <ruixian....@pp.inet.fi>
Subject Re: [users@httpd] Permissions Problem
Date Mon, 26 Jan 2004 05:14:38 GMT


Chuck Haron wrote:

> On Sunday, January 25, 2004, at 09:37 PM, BAO RuiXian wrote:
>
> ScriptAlias /cgi-bin/ "/srv/www/cgi-bin/"
>
> running <find / -name "httpd.conf"> finds only one copy of httpd.conf 
> (/etc/httpd/httpd.conf).

The problem become more interesting. Are other ordinary html pages 
working? What is the URL, and can we try it out ourselves? Can you try 
the following CGI script printenv.pl in your cgi-bin directory?
You can change your path to perl accordingly.

#!/usr/lib/perl
##
##  printenv -- demo CGI program which just prints its environment
##

print "Content-type: text/plain\n\n";
foreach $var (sort(keys(%ENV))) {
    $val = $ENV{$var};
    $val =~ s|\n|\\n|g;
    $val =~ s|"|\\"|g;
    print "${var}=\"${val}\"\n";
}

Best

Bao

>
>     Best
>
>     Bao
>
>
>         Best
>
>         Bao
>
>
>         I get the following when I run ./spellchecker.pl:
>         Content-type: text/html
>
>         <html>
>         <head>
>         <link rel="stylesheet" type="text/css"
>         href="/speller/spellerStyle.css"/>
>         <script src="/speller/wordWindow.js"></script>
>         <script>
>         var suggs = new Array();
>         var words = new Array();
>         var textinputs = new Array();
>         var error;
>         Error: No word lists can be found for the language "en_US".
>         error = 'System error: Aspell program execution failed
>         (`aspell -a --lang=en_US< /tmp/cAwzRfcnsW/3DPT2LlxkH`)';
>         var wordWindowObj = new wordWindow();
>         wordWindowObj.originalSpellings = words;
>         wordWindowObj.suggestions = suggs;
>         wordWindowObj.textInputs = textinputs;
>
>         function init_spell() {
>         // check if any error occured during server-side processing
>         if( error ) {
>         alert( error );
>         } else {
>         // call the init_spell() function in the parent frameset
>         if (parent.frames.length) {
>         parent.init_spell( wordWindowObj );
>         } else {
>         error = "This page was loaded outside of a frameset. ";
>         error += "It might not display properly";
>         alert( error );
>         }
>         }
>         }
>
>         </script>
>
>         </head>
>         <body onLoad="init_spell();">
>
>         <script>
>         wordWindowObj.writeBody();
>         </script>
>
>         </body>
>         </html>
>
>         Best
>
>         Bao
>
>
>         Some log entries:
>
>         error_log
>         [Sun Jan 25 17:58:44 2004] [error] [client 172.31.3.2]
>         client denied by server configuration:
>         /srv/www/cgi-bin/spellchecker.pl
>
>         access_log
>         172.31.3.2 - - [25/Jan/2004:17:58:44 -0700] "POST
>         /cgi-bin/spellchecker.pl HTTP/1.1" 403 312
>
>
>         Best
>
>         Bao
>
>
>         Apache/1.3.26 Server at sloxmail.cognitive.com Port 80
>         ---
>
>         httpd.conf contains following
>         ---
>         <Directory "/srv/www/cgi-bin">
>         AllowOverride None
>         Options None
>         Order allow,deny
>         Allow from all
>         </Directory>
>         ---
>
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message