Answer the question
In order to leave comments, you need to log in
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
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.
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 questionAsk a Question
731 491 924 answers to any question