各位大侠怎么没有回复的?我初步感觉应该是http设置问题,大家给看看吧。谢谢了。着急期待中。。。。。。。。。。。。。
修改/etc/apache/httpd.conf文件,请参照如下修改方法:
--- /etc/apache/httpd.conf.default 2004-01-21 09:02:50.000000000 +0800
+++ /etc/apache/httpd.conf 2004-04-29 11:39:30.000000000 +0800
@@ -348,7 +348,7 @@
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
-DocumentRoot "/var/www/htdocs"
+DocumentRoot "/home/httpd/html/2004"
#
# Each directory to which Apache has access, can be configured with respect
@@ -373,7 +373,7 @@
#
# This should be changed to whatever you set DocumentRoot to.
#
-<Directory "/var/www/htdocs">
+<Directory "/home/httpd/html/2004">
#
# This may also be "None", "All", or any combination of "Indexes",
@@ -638,13 +638,13 @@
# The same rules about trailing "/" apply to ScriptAlias directives as to
# Alias.
#
- ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
+ ScriptAlias /cgi-bin/ "/home/httpd/cgi-bin/"
#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
- <Directory "/var/www/cgi-bin">
+ <Directory "/home/httpd/cgi-bin">
AllowOverride None
Options None
Order allow,deny
@@ -979,6 +979,17 @@
# ErrorDocument 403
http://phf.apache.org/phf_abuse_log.cgi #</Location>
+RewriteEngine on
+RewriteRule ^/Ytht.Net(.*)/bbschat(.*) /cgi-bin/www/bbschat [PT]
+RewriteRule ^/Ytht.Net(.*)$ /cgi-bin/www [PT]
+RewriteRule ^/$ /cgi-bin/www [PT]
+<Location /cgi-bin/www>
+ SetHandler cgi-script
+</Location>
+<Location /cgi-bin/www/bbschat>
+ SetHandler cgi-script
+</Location>
+
### Section 3: Virtual Hosts
#
# VirtualHost: If you want to maintain multiple domains/hostnames on your
【 在 booklijian (sheep) 的大作中提到: 】
: 遵照各位的指点,我现在已经成功的将telnet配置好了。可以正常使用了。但是现在web部分,虽然也能显示那颗大白菜了。但是感觉图片还是有问题。
: 例如:在新用户注册时,填写表单末尾的数字图片 无法显示,所以无法通过web注册新用户。
: 另外,https登陆时网页无法显示。如果在http协议下(
http://localhost)输入用户名和密码,则跳转到https://对应的页面去了。由于https无法显示,所以网页也是无法显示。这个问题应该怎么解决?
: ...................
--
FROM 159.226.58.*