D
D
demortall2021-10-30 23:12:53
Nginx
demortall, 2021-10-30 23:12:53

How to dynamically check which domain the client goes to?

@app.route('/', host='domain.com')Python needs to understand which domain the client is going to without these arguments to the decorator.
A new domain is added to the site each time and it is difficult to specify with an argument. I use Nginx.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2021-10-31
@ky0

See HTTP header Host.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question