yii2后端出现错误403

时间:2018-05-05 07:16:00

标签: apache yii2 yii2-advanced-app

使用yii2-advanced模板。在脚本和样式的文件转移到生产(使用CentOS)后,我捕获错误403即,页面被给出,并且样式没有收紧。

enter image description here 如果你通过直接链接(根据样式),那么它们被正确地给出(响应200)。可能是什么原因?

Conf for backend

<VirtualHost *:443>
ServerName cp.tickets.site.ru
ServerAdmin osd@site.ru
DocumentRoot "/var/www/vhost/tickets.site.ru/htdocs/backend/web"
Options FollowSymLinks
DirectoryIndex index.php index.html
RewriteEngine on

<Directory "/var/www/vhost/tickets.site.ru/htdocs/backend/web">
    RewriteEngine on
    AllowOverride none
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    # otherwise forward the request to index.php
    RewriteRule ^ index.php [L]
</Directory>


ErrorLog    /var/www/vhost/tickets.site.ru/logs/cp_http_error.log
TransferLog /var/www/vhost/tickets.site.ru/logs/cp_http_access.log

</VirtualHost>

0 个答案:

没有答案