M
M
Mikhail2017-05-26 11:50:33
Apache HTTP Server
Mikhail, 2017-05-26 11:50:33

Filtering Apache virtual hosts (sites) on the same IP?

Welcome all. The problem is that I need to display different virtual hosts (read "Sites") on different domains that are hosted on one dedicated IP.
More:
There is IP 127.0.0.1 on which there is an Apache serving 3 Wirth. host (host1.dev, host2.dev, test2.dev), there is an example.ru domain, which has three subdomains (host1.example.ru, host2.example.ru, host3.example.ru), respectively, they all resolve to IP 127.0.0.1.
It is necessary that when you enter the site host1.example.ru, Apache sees the host and loads the appropriate Wirth on it. host (more precisely, a folder with site files). How to implement this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
Wexter, 2017-05-26
@kursoriks

virtual host

R
Ruslan Fedoseev, 2017-05-26
@martin74ua

Implement? Very simple. Read the Apache documentation. If it doesn't help, read it again. If it doesn't help now, hire an administrator.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question