This repository was archived by the owner on Apr 25, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -78,8 +78,9 @@ layer to route requests to the project for a specific domain:
78
78
79
79
.. tip ::
80
80
81
- Multiple domains can be attached to a project. Wildcard domains (like
82
- ``*.example.com ``) are also supported.
81
+ Multiple domains can be attached to a project. :ref: `wildcard_routes ` (like
82
+ ``*.example.com ``) are also supported using the ``.symfony/routes.yaml ``
83
+ file.
83
84
84
85
If you require access to the project before the domain name switch is done, you
85
86
can create a ``hosts `` file entry on your computer and point it directly to one
Original file line number Diff line number Diff line change @@ -101,6 +101,8 @@ different applications:
101
101
# "blog" is the name defined in another .symfony.cloud.yaml
102
102
upstream : " blog:http"
103
103
104
+ .. _wildcard_routes :
105
+
104
106
Wildcard Routes
105
107
~~~~~~~~~~~~~~~
106
108
@@ -110,7 +112,18 @@ as any other routes; routed to an application or redirected to another one.
110
112
To create a wildcard route, prefix the route with a star (``* ``). For example
111
113
``*.example.com `` matches any HTTP requests to ``www.example.com ``,
112
114
``blog.example.com ``, or ``us.example.com `` once the wildcard domain
113
- (``*.example.com ``) is added to the project.
115
+ (``*.example.com ``) is added to the project:
116
+
117
+ .. code-block :: yaml
118
+
119
+ " https://{all}/ " :
120
+ type : upstream
121
+ upstream : " app:http"
122
+
123
+ " https://*.{default}/ " :
124
+ type : upstream
125
+ upstream : " app:http"
126
+
114
127
115
128
.. caution ::
116
129
You can’t perform that action at this time.
0 commit comments