比较来自世界各地的卖家的域名和 IT 服务价格

403 从“动态可自定义的质量虚拟托管”

我看过记录了apaches
http://httpd.apache.org/docs/2.2/vhosts/mass.html
, 从中拿走了

UseCanonicalName Off
LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
CustomLog /tmp/access_log vcommon
VirtualDocumentRoot /var/www/localhost/htdocs/%0/web
VirtualScriptAlias /var/www/localhost/htdocs/%0/web

我希望为我的本地开发服务器来解除我需要配置新文件的需要。 vhost 对于我开始的每个新域。

确保这一点 Apache 拍摄文件,我添加了垃圾, «dlkmvasp» UP,检查是否出现语法错误,删除垃圾并再次重新启动服务器。

我添加了几个域 / etc / hosts 并试图访问 loc.example.com.

"tail -f / tmp / access_log" 现在给予 "loc.example.com 127.0.0.1 - - [04 / Mar / 2012: 11: 37: 03 +0100]" GET / HTTP / 1.1 "403 265"

我怎么能调试它? 我可以发布所有配置 vhost, 它很有用,如果没有必要,我只是不想从文本的墙开始。
已邀请:

风见雨下

赞同来自:

自从你得到

403

但不是

404

似乎他被发现了; 你只需要一些这样的东西:

<directory htdocs="" localhost="" var="" www="">
Order allow,deny
Allow from all
</directory>

?

小姐请别说爱

赞同来自:

在你的例子中

loc.example.com



DocumentRoot



/var/www/localhost/htdocs/loc.example.com/web

.

确保方式

/var/www/localhost/htdocs/loc.example.com/web

和文件B.

web

目录具有允许的适当权限 Apache 访问它们。 对于目录 apache 需要

r-x

许可证和需要的文件

r--

要回复问题请先登录注册