Apache下的DocumentRoot目录指定
apache配置文件已经指定了,但是日志里面还是报错。
<VirtualHost *:8080>
DocumentRoot /var/www/html/site6an/t
.......
</VirtualHost>
日志报错信息
[Sat Sep 03 09:50:58 2011] [error] [client 127.0.0.1] File does not exist: /var/www/html/site6an/t/var/www
[Sat Sep 03 09:53:16 2011] [error] [client 127.0.0.1] File does not exist: /var/www/html/site6an/t/var/www
怎么会多出来/var/www
现在把整个目录调整大html的weibo文件夹下面,访问网址错误日志:
[Mon Sep 05 13:44:26 2011] [error] [client 127.0.0.1] File does not exist: /var/www/html/weibo/site6an
怎么会在会在weibo 文件夹下多出来 /site6an ?
<VirtualHost *:8080>
DocumentRoot /var/www/html/site6an/t
.......
</VirtualHost>
日志报错信息
[Sat Sep 03 09:50:58 2011] [error] [client 127.0.0.1] File does not exist: /var/www/html/site6an/t/var/www
[Sat Sep 03 09:53:16 2011] [error] [client 127.0.0.1] File does not exist: /var/www/html/site6an/t/var/www
怎么会多出来/var/www
现在把整个目录调整大html的weibo文件夹下面,访问网址错误日志:
[Mon Sep 05 13:44:26 2011] [error] [client 127.0.0.1] File does not exist: /var/www/html/weibo/site6an
怎么会在会在weibo 文件夹下多出来 /site6an ?
...全文
相关推荐
Apache 文件根目录设置修改方法 (Document Root)
这样Apache服务器在启动时,就会根据新的配置去指定的文件根目录下查找静态资源文件。4. 重启Apache服务在修改httpd.conf配置文件之后,必须重启Apache服务,更改才能生效。
如何修改和添加Apache的默认站点目录
在httpd.conf文件中,"DocumentRoot"指令用于指定服务器文档的根目录,也就是Apache的默认站点目录。修改默认站点目录的步骤如下:1.
apache修改默认路径
指令指定了 Apache 的目录权限。
apache 虚拟目录配置文件
- **DocumentRoot指令详解**: - `DocumentRoot`指令用于指定网站的根目录,即用户首次访问网站时显示的内容所在目录。
apache配置虚拟目录
- **DocumentRoot**:指定该虚拟主机的文档根目录。 - **Directory**:定义对文档根目录的访问权限和选项。3.


