N
N
Niko True2013-11-16 23:03:29
Nginx
Niko True, 2013-11-16 23:03:29

How to setup hosts in apache?

Faced such problem: on the virtual server there are 2 virtual hosts - site.ru and demo.say.ru.
On the provider's DNS, I registered site.ru and mineydomain.ru. Apache + Njinx is running on the server. And here is the problem itself, when I open my left domain.ru: 8080, then I open the index.php of the site demo.site.ru. I open it through 8080, because Apache is running on it, if you open it without it, then there will be an nginx page and that's it. What is causing this strange behaviour? There are no mentions of the moylevydomen.ru server.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Niko True, 2013-11-17
@buloshnik

Thank you all, I figured it out) the host that was by default - listened to port 80, that's why it didn't work, changed the port to 8080 - now it redirects to the right place.

D
Dmitry, 2013-11-17
@ExileeD

If you open moylevydomen.ru and it is not in the config, then apache and ngnix opens the site that it has by default. I don't understand where the strange behavior is. show config.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question