Deprecated: Typecho\Widget\Request::getServer(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in D:\PHP_HOME\www\gp_blog\var\Typecho\Widget\Request.php on line 219

Deprecated: Typecho\Request::getServer(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in D:\PHP_HOME\www\gp_blog\var\Typecho\Request.php on line 349

Deprecated: Typecho\Widget\Response::goBack(): Implicitly marking parameter $suffix as nullable is deprecated, the explicit nullable type must be used instead in D:\PHP_HOME\www\gp_blog\var\Typecho\Widget\Response.php on line 158

Deprecated: Typecho\Widget\Response::goBack(): Implicitly marking parameter $default as nullable is deprecated, the explicit nullable type must be used instead in D:\PHP_HOME\www\gp_blog\var\Typecho\Widget\Response.php on line 158
You don‘t have permission to access this resource. - 开发者

项目场景:
访问自己的搭建的网站时apache报错You don’t have permission to access this resource.

apach/conf/httpd.conf文件修改如下:

<Directory />
    Options FollowSymLinks
    AllowOverride all
    Require local
</Directory>

修改为:

Options FollowSymLinks
AllowOverride none
Require all granted

apach/conf/httpd-vhosts.conf文件修改如下:

<Directory />
<Directory "${INSTALL_DIR}/www/">
    Options FollowSymLinks
    AllowOverride all
    Require local
</Directory>

修改为:

<Directory />
<Directory "${INSTALL_DIR}/www/">
    Options FollowSymLinks
    AllowOverride all
    Require all granted
</Directory>

标签: none

评论已关闭