国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

How to configure multiple subdomain names under symfony 2
為情所困
為情所困 2017-05-16 16:45:13
0
1
572

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?

為情所困
為情所困

reply all(1)
大家講道理

Only supported by 2.2 and above:

(1) Individually assigned to a certain action:

some_routing:
    path: /some_path
    host: "{host}.example.com"
    defaults: { _controller: SomeDemoBundle:Some:exampleAction }

(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:

some_routing:
    resource: "@SomeDemoBundle/Resources/config/routing.yml"
    host:     "host.example.com"
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template