P
P
Petr Volkhanov2014-03-24 17:09:54
Nginx
Petr Volkhanov, 2014-03-24 17:09:54

How to host multiple sites on one server?

I have a site in the /var/www/ folder, how can I tell apache + nginx that a completely different site will be in the /var/www/t4/ folder?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2014-03-24
@bk0011m

Maybe it's better to scatter both sites in different directories?
For example:
/var/www/site1
and
/var/www/site2
Otherwise, the second site will be accessible via a link to the first. Like this: site1/site2
In general, read about vhosts

H
hadra, 2014-03-24
@hadra

Is the server yours or are you renting it?

H
hadra, 2014-03-25
@hadra

make it in place

I have a site in the /var/www/ folder, how do I point apache + nginx to what is in the /var/www/t4/ folder

first, do this:
www/site1
www/site2, etc ... then set it up through
the host..
if a person came from the 1st site, then let him go to the 1st folder.. link, should be thrown to the dad with the site ... with the norms. settings . No, maybe your host is not registered, so this is bullshit.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question