【发布时间】:2016-04-22 19:51:57
【问题描述】:
我有两个子域:
www.example.com 和 static.example.com
根域 example.com 重定向到 www.example.com。
如何在 Symfony2/3 中将 cookie 限制为 www.example.com 并使 static.example.com 没有 cookie。我在 config.yml 中没有找到任何 cookie 部分。
如何在使用函数时指定特定的子域:
href="{{ 资产('favicon.png') }}"
href="{{ 路径('blog_show') }}"
$this->generateUrl('blog_show',array('slug' => 'my-blog-post'));
PS:我也完全控制 Apache。
【问题讨论】: