那web服务成功?
cygwin下安装手册是这么说的
不知道linux是怎么样的
修改/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/2001"
#
# 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/2001">
#
#
# 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
【 在 yaomaohua.bbs@bbs.qxntc.edu.cn (〆ゞ毛毛) 的大作中提到: 】
: 我在我的httpd.conf里没有找到y/tht.net的值?
: 55555555555
: 【 在 gui.bbs@bbs.xjtu.edu.cn (我要去地狱) 的大作中提到: 】
: : 用于web方式的rewrite规则
: : apache的httpd.conf文件里的rewrite后面的y/tht.net要改成smagic得值,否则只能
: : 显示主页,不能进入bbs
: : ...................
--
FROM 219.225.4.84