K
K
krll-k2014-06-16 12:24:32
Nginx
krll-k, 2014-06-16 12:24:32

How to make subdomains on localhost?

We need *.site.loc subdomains
So far, only www.site.loc has turned out
Problem with /etc/hosts
I write to it:
127.0.0.1 site.loc
Site.loc opens
I write to it:

127.0.0.1 site.loc 
127.0.0.1 www.site.loc

Opens www.site.loc
I write to it:
127.0.0.1 site.loc
127.0.0.1 www.site.loc
127.0.0.1 *.site.loc

666.site.loc not opening

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
svd71, 2014-06-16
@svd71

How to set up Apache 2 sites on the same ip?

P
Pavel Solovyov, 2014-06-16
@pavel_salauyou

all possible subdomains must be manually registered in /etc/hosts

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question