【发布时间】:2015-02-14 01:11:27
【问题描述】:
不知何故,路由不知道从哪里获取我的资产,它缺少基本演示的 3 个 css 文件:
http://sub. domain.ext/bundles/framework/css/structure.css
http://sub.domain.ext/bundles/framework/css/body.css
http://sub.domain.ext/bundles/framework/css/exception.css
服务器运行 Ubuntu 并安装了 Plesk。
等等 /var/www/vhosts/system/sub.domain.ext/conf/vhost.conf
我已经告诉服务器寻找我的项目:
ServerName sub.domain.ext
ServerAlias www.sub.domain.ext
DocumentRoot /var/www/vhosts/domain.ext/sub.domain.ext/projectmanagement/web
<Directory /var/www/vhosts/domain.ext/sub.domain.ext/projectmanagement/web>
# enable the .htaccess rewrite
AllowOverride All
Order allow,deny
Allow from All
</Directory>
ErrorLog /var/log/apache2/project_error.log
CustomLog /var/log/apache2/project_acces.log combined
我也尝试将模板 -> assets_base_url 添加到 config.yml 但没有关系,我继续获取丢失的资产。
如果有人以前有过使用子域和 symfony2 的经验,请告诉我如何让它工作的秘诀
【问题讨论】:
标签: apache .htaccess symfony ubuntu plesk