A
A
account-42017-03-13 05:06:01
Nginx
account-4, 2017-03-13 05:06:01

How to create a separate site on a subdomain on one VPS?

I have an A record in the registrar panel that redirects *.example.com, example.com and www.example.com to the IP of my Amazon instance.
Do I understand correctly that I don’t need to configure anything at the registrar and don’t create subdomains there, but I can configure nginx so that it gives one site at the request of blah.example.com, and at example.com and www.example.com - another?
And the second question, how to merge example.com and www.example.com?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2017-03-13
@account-4

1) Yes, that's right.
2) What do you mean by "combine"?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question