I
I
ilyabond2021-03-24 18:40:32
Apache HTTP Server
ilyabond, 2021-03-24 18:40:32

How to set up multiple domains on the same apache (windows) server?

There are: -
Server PC based on windows server with Apache 2.4
installed - Static IP 185.111.111.111 (example)
- Two sites at 185.111.111.111/site1 and 185.111.111.111/site2
- Two domains domen1.ru and domen2.ru linked to server ip

Task:
Configure so that when you go to domen1.ru, site1 opens, similarly, when you go to domen2.ru, site2 opens.

Now I have to go this way domen1.ru/site1 is terribly inconvenient.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2021-03-24
@ilyabond

Apache 2.4 VirtualHost Examples:
https://httpd.apache.org/docs/2.4/vhosts/examples.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question