使用yii2-advanced模板。在脚本和样式的文件转移到生产(使用CentOS)后,我捕获错误403即,页面被给出,并且样式没有收紧。
如果你通过直接链接(根据样式),那么它们被正确地给出(响应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>