apache怎么绑定二级域名

alisam123 2007-06-11 11:02:12
apache怎么绑定二级域名
NameVirtualHost 58.61.156.177
<VirtualHost 58.61.156.177:80>
ServerAdmin yjjqtdht@sohu.com
DocumentRoot F:\html
ServerName www.cnshipper.com
</VirtualHost>
<VirtualHost 58.61.156.177:80>
ServerAdmin lisan@sohu.com
DocumentRoot F:\html\art
ServerName news.cnshipper.com
</VirtualHost>
错误提示:
Forbidden
You don't have permission to access / on this server.


--------------------------------------------------------------------------------

Apache/2.0.55 (Win32) PHP/4.4.4 Server at news.cnshipper.com Port 80
...全文
517 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
javaoaout 2007-07-10
  • 打赏
  • 举报
回复
mark
strayly 2007-06-19
  • 打赏
  • 举报
回复
NameVirtualHost 58.61.156.177:80
missago 2007-06-14
  • 打赏
  • 举报
回复
<VirtualHost ip:80>
rewriteengine on
rewritecond %{HTTP_HOST} [^.]+\.域名\.com$
rewriterule ^(.+) %{HTTP_HOST}$1 [C]
rewriterule ([^.]+)\.域名\.com(.*) /$1$2
其他配置文件
</VirtualHost>
alisam123 2007-06-11
  • 打赏
  • 举报
回复
改为DocumentRoot F:/html 还是不行
mrshelly 2007-06-11
  • 打赏
  • 举报
回复
DocumentRoot F:/html
DocumentRoot F:\\html


DocumentRoot F:\\html\\art
夜游灞水 2007-06-11
  • 打赏
  • 举报
回复
httpd.conf 中把
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Satisfy all
</Directory>
改成
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

24,923

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Apache
社区管理员
  • Apache
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧