本站教程收集整理的这篇文章主要介绍了WAMP 3.06,是目录到虚拟主机坏了?,本站教程本站觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在使用WAMP 3.06。 我有一个网站在“c:/ wamP64 / www / webagenda”
当我尝试使用“ http://cloudappoint.myvnc.com ”远程访问站点时,我得到:
Forbidden You don’t have permission to access /webagenda on this server. Apache/2.4.23 (Win64) php/5.6.25 Server at agenda.myvnc.com Port 8000
我的虚拟主机文件是:
# Virtual Hosts <VirtualHost *:8000> ServerName localhost DocumentRoot c:/wamP64/www <Directory “c:/wamP64/www/”> Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All require local </Directory> </VirtualHost> #if I uncomment the next lines the problem is over #<Directory “c:/wamP64/www/webagenda”> #Options Indexes FollowSymLinks Includes ExecCGI #DirectoryIndex index.php #AllowOverride None #require all granted #</Directory> <VirtualHost *:8000> ServerName cloudappoint ServerAlias cloudappoint.myvnc.com DocumentRoot c:/wamP64/www/webagenda ErrorLog “logs/agenda-error.log” CustomLog “logs/agenda-access.log” common <Directory “c:/wamP64/www/webagenda/”> Options +Indexes +FollowSymLinks +MultiViews DirectoryIndex index.php AllowOverride All require all granted </Directory> </VirtualHost>
正如你可以从我的评论中看到的,如果我取消下一行的注释,问题就结束了:
为什么所有虚拟主机指向第一个虚拟主机?
Apache 香港vps DocumentRoot到虚拟主机的networking目录
wordpress门户无法从Intranet访问
将Google云端硬盘目录用作Apache虚拟主机
XAMPP(Mac)显示403的虚拟主机
<Directory “c:/wamP64/www/webagenda”> Options Indexes FollowSymLinks Includes ExecCGI DirectoryIndex index.php AllowOverride None require all granted </Directory>
这里有什么不对吗?
如何:在Apache 2.4.4上设置虚拟主机
如何防止不同的Apache虚拟主机之间共享php会话?
如何在Zend Server上创buildVirtualHost?
dns lookup在离线状态下不能正常工作
禁用apache上的目录列表; 但应该允许访问单个文件
如果将<Directory>块移出<VirtualHost>块导致访问被允许,那么这是一个公平的假设,即<VirtualHost>定义有问题。
我可以建议你在你的定义中尝试这个改变吗?
<VirtualHost *:8000> serverName cloudappoint.myvnc.com <–change serverAlias www.cloudappoint.myvnc.com <–change DocumentRoot c:/wamP64/www/webagenda ErrorLog “logs/agenda-error.log” CustomLog “logs/agenda-access.log” common <Directory “c:/wamP64/www/webagenda/”> Options +Indexes +FollowSymLinks +MultiViews DirectoryIndex index.php AllowOverride All require all granted </Directory> </VirtualHost>
编辑
我假设你试图访问该网站时将非标准端口号添加到网址?
http://cloudappoint.myvnc.com:8000
当我添加:8000我没有得到错误,我得到一个脱机页面说
The site you have requested is currently unavailable,please try BACk again later.
本站总结
以上是本站教程为你收集整理的WAMP 3.06,是目录到虚拟主机坏了?全部内容,希望文章能够帮你解决WAMP 3.06,是目录到虚拟主机坏了?所遇到的程序开发问题。
如果觉得本站教程网站内容还不错,欢迎将本站教程推荐给好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。