M
M
mbhusty2021-12-01 09:59:03
Nginx
mbhusty, 2021-12-01 09:59:03

How to set up two or more local nginx domains?

Raised a web server on raspberries, I can’t figure out how to create several local domains to separate projects?
For example
home/www/local/ - http: //local/
home/www/dev/ - http: //dev/
Google didn't help much.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
ky0, 2021-12-01
@ky0

Google didn't help much.

Ha ha, classic. There is a categorical lack of information on the Internet (c)
Several domains are made into separate sections serverwith different directives server_nameand root. Well, they must be added to hosts, of course.

A
Alexander, 2021-12-01
@Adler_lug

Is there any special Nginx in Raspberry PI?
If not, which is most likely the case (in the sense of not special), then Google is full of information .
Then register it in DNS. I don't know how it works in your case.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question