我的error.log文件是这样: [Sun Sep 22 18:32:35 2002] [error] [client 202.117.99.141] File does not exist: D:/Apache Group/Apache2/htdocs/index.htm 好像跟楼上说的症状一样。 可是我设置完后明明重启了apache,有一次连机子也重启了。
question one: 如果你想把d:/myweb/作为DocumentRoot,则只要修改 DocumentRoot "d:/myweb/" 而保持<Directory />不变如果你想增加虚拟目录则应该: Alias /myweb "d:/myweb/" <Directory "d:/myweb/"> Options FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory>question two : 楼上已经说了
<Directory "d:/myweb/">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
你不说明白,谁知道该怎么解决阿我从前碰到的一个症状就是 提示找不到文件,没有该文件...把logs\error.log的相关内容贴出来看看!!!
[Sun Sep 22 18:32:35 2002] [error] [client 202.117.99.141] File does not exist: D:/Apache Group/Apache2/htdocs/index.htm
好像跟楼上说的症状一样。
可是我设置完后明明重启了apache,有一次连机子也重启了。
如果你想把d:/myweb/作为DocumentRoot,则只要修改
DocumentRoot "d:/myweb/"
而保持<Directory />不变如果你想增加虚拟目录则应该:
Alias /myweb "d:/myweb/"
<Directory "d:/myweb/">
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>question two :
楼上已经说了
[Tue Sep 17 19:53:08 2002] [warn] pid file D:/Apache Group/Apache2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Tue Sep 17 19:53:09 2002] [notice] Parent: Created child process 292
[Tue Sep 17 19:53:11 2002] [notice] Child 292: Child process is running
[Tue Sep 17 19:53:11 2002] [notice] Child 292: Acquired the start mutex.
[Tue Sep 17 19:53:11 2002] [notice] Child 292: Starting 250 worker threads.