E
E
Eugene2018-06-13 13:24:50
Apache HTTP Server
Eugene, 2018-06-13 13:24:50

How to deploy two sites on the same server?

There is currently 1 site on the web server. Available on the Internet. Apache hangs on port 80 as I understand it.
Now you need to hang another 1 site on another domain.
As I understand it, you need to configure Apache so that the second site occupies a different port?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Viktor Taran, 2018-06-13
@shambler81

Apache is able to recognize headers and substitute the desired site based on them.
As a result, you can have a million sites on one IP and one port, this is a standard thing that is used constantly and everywhere.
for this, virtualhost is used in which the definition goes according to the heading
. More details have already been given to you above.

R
Roman Mirilaczvili, 2018-06-13
@2ord

Sites can be served:
on different subdomains/domains: app1.example.com, app2.example.com
on different path prefixes (i.e. /app1/ , /app2/ )
on different ports
Sites usually sit on different domains or subdomains .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question