A
A
Andrey Prozorov2019-01-12 19:28:20
linux
Andrey Prozorov, 2019-01-12 19:28:20

How to configure nginx to work with multiple domains and different configurations?

Friends. Prompt with configuring the server. There is njix. There are local domains that are included in the configuration. Site.loc site2.loc
All this from under docker. There is a domain on the sale. It has subdomains. How do I associate sitee.loc with an external domain submenu. If this is not possible, then you need to somehow create receivers that you can put in to the nginx configuration. Since it is attached to git and should not be rewritten for each local environment

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
grinat, 2019-01-12
@grinat

location /match/here {
proxy_pass http://example.com;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question