How to configure multiple subdomain names under symfony 2
为情所困2017-05-16 16:45:13
0
1
389
How to configure multiple subdomain names under symfony 2
Main domain name www.xxx.com
xxxcontroller I only allow access to the test.xxx.com domain name. How is this configured?
Only supported by 2.2 and above:
(1) Individually assigned to a certain action:
(2) Assign batches to a Controller
First use annotations in this Controller or write yaml routing for it, then import this group of routing, and uniformly restrict the host: