O
O
OKNOZA2015-01-28 18:23:46
Nginx
OKNOZA, 2015-01-28 18:23:46

Nginx how to create a 3rd level domain?

Can you tell me how to create a 3rd level domain?
Now 127.0.0.1, but you need to get http://cdn.127.0.0.1/

Answer the question

In order to leave comments, you need to log in

2 answer(s)
3
3vi1_0n3, 2015-01-28
@3vi1_0n3

It is better to write normal names in /etc/hosts
then add a line to the server section
and to the other
server_name cdn.server

N
Nikolai Turnaviotov, 2015-01-28
@foxmuldercp

What's the problem then?
...
server_name my.very.long.name.in.some,test.domain.com;;
...
anyhow this name was registered in dns, at least in a, at least in aaaa, at least cname, like mine, for example

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question