Answer the question
In order to leave comments, you need to log in
Multiple sites in different web containers on the same server. All sites are needed on the 80th port, how to do it?
I use VPS to host several sites that run on the main Apache server preinstalled in the system.
I want to run another site on the same machine in a separate Apache instance, I want it to serve content on port 80 as well.
How can I do that?
I heard about multiple IPs for one server, but how is such a thing configured?
Answer the question
In order to leave comments, you need to log in
Put nginx on port 80 and proxy to the required amount of apache2.
If one is PHP and the other is Tomcat, then it can be done through one main Apache: the first virtual host uses mod_php, and the second mod_jk. This mod_jk will connect to Tomcat, which can sit on any port.
The option with a proxy server in front (for example, nginx) is also quite working, but there is more configuration and it will be necessary to raise a new server.
And you can ask the provider for a second address, then hang Apache on one address, and Tomcat on the second.
Set nginx to 80th, hang everything else on localhost:someport (8080, 8081 and so on). At the same time, you can quickly distribute statics to them.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question