配置apache2.4 You don't have permission to access / on this server.
问题描述
阿里云,云服务器 ECS使用ip访问出现无法访问
解决方法:
设置安全组配置-》配置规则-》添加安全组规则
选择http协议
设置成功后访问出现
You don't have permission to access / on this server.
版本:apache2.4.18
问题百度答案修改之后无效
最后修改C:\wamp64\bin\apache\apache2.4.18\conf\extra\httpd-vhosts.conf
文件
# # Virtual Hosts # <VirtualHost *:80> ServerName localhost DocumentRoot c:/wamp64/www <Directory "c:/wamp64/www/"> Options +Indexes +FollowSymLinks +MultiViews AllowOverride All Require all granted </Directory> </VirtualHost>
访问成功,之前修改了很多次httpd.conf 如果修改了httpd-vhosts.conf
还无效那就试试同时修改下httpd.conf
# onlineoffline tag - don't remove
Order Allow,Deny
Allow from all