首页 后台正文

Apache You don't have permission to access / on this server

yuange 后台 2021-02-15 1027 0 php中的bug
<VirtualHost *:80>
  ServerName com.xxx.com
  ServerAlias com.xxx.com
  DocumentRoot "\www\aaa"
  <Directory "\www\aaa">
    Options -Indexes +FollowSymLinks +ExecCGI
    AllowOverride All
    Order allow,deny
    Allow from all
    Require all granted
  </Directory>
</VirtualHost>

Edit httpd.conf file, which is in /etc/httpd/conf/httpd.conf. Add the below code.
<Directory "/">
#Options FollowSymLinks
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride None
Allow from all
</Directory>

<Directory "/home/">
#Options FollowSymLinks
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride None
Allow from all
</Directory>


评论

在线客服-可直接交谈

您好!有什么需要可以为您服务吗?