installhttpd, nju09, 都已经安装成功(至少看上去如此)
在httpd.conf中添加以下几行:
FastRWEngine on
RewriteEngine on
RewriteRule ^/bbs(.*)/bbschat(.*) /cgi-bin/www/bbschat [PT]
RewriteRule ^/bbs(.*)$ /cgi-bin/www [PT]
RewriteRule ^/$ /cgi-bin/www [PT]
<Location /cgi-bin/www>
SetHandler fastcgi-script
</Location>
<Location /cgi-bin/www/bbschat>
SetHandler cgi-script
</Location>
启动httpd之后,静态网页如
http://mydomain/scicalc.html可以访问,
但是输入
http://mydomain/之后浏览器始终处于等待状态,
apache的log如下:
root /usr/local/apache/htdocs # tail /usr/local/apache/logs/error_log
[Thu Jun 17 01:42:48 2004] [error] FastCGI: can't create dynamic directory "/tmp/fcgi/dynamic": access for server (uid 9999, gid 99) failed: read not allowed
[Thu Jun 17 01:42:48 2004] [alert] httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[Thu Jun 17 01:42:48 2004] [error] FastCGI: access for server (uid 9999, gid 99) failed: read not allowed
[Thu Jun 17 01:42:48 2004] [error] FastCGI: can't create dynamic directory "/tmp/fcgi/dynamic": access for server (uid 9999, gid 99) failed: read not allowed
[Thu Jun 17 01:42:48 2004] [notice] FastCGI: process manager initialized (pid 9047)
[Thu Jun 17 01:42:48 2004] [notice] Apache/1.3.29 (Unix) mod_fastcgi/2.2.12 configured -- resuming normal operations
[Thu Jun 17 01:42:48 2004] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Thu Jun 17 01:43:11 2004] [crit] (13)Permission denied: FastCGI: can't create (dynamic) server "/var/www/cgi-bin/www": bind() failed [/tmp/fcgi/dynamic/d16b742f2d232f8632e5fdea8c211d53]
[Thu Jun 17 01:43:55 2004] [error] [client 162.105.91.218] File does not exist: /var/www/html/favicon.ico
[Thu Jun 17 01:49:23 2004] [crit] (13)Permission denied: FastCGI: can't create (dynamic) server "/var/www/cgi-bin/www": bind() failed [/tmp/fcgi/dynamic/d16b742f2d232f8632e5fdea8c211d53]
root /usr/local/apache/htdocs #
请问该如何解决?thx...
--
FROM 162.105.91.218