配置apache2.4 You don't have permission to access / on this server.

问题描述apache

阿里云,云服务器 ECS使用ip访问出现没法访问安全

解决方法:服务器

设置安全组配置-》配置规则-》添加安全组规则ide

选择http协议ui

 

 

 

 

 设置成功后访问出现this

  You don't have permission to access / on this server. 阿里云

版本:apache2.4.18spa

问题百度答案修改以后无效code

最后修改C:\wamp64\bin\apache\apache2.4.18\conf\extra\httpd-vhosts.confserver

文件

#
# 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
相关文章
相关标签/搜索