S
S
Snowindy2013-02-23 19:14:48
Network administration
Snowindy, 2013-02-23 19:14:48

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

5 answer(s)
M
Maxim Klyushkov, 2013-02-23
@Snowwindy

Put nginx on port 80 and proxy to the required amount of apache2.

N
nochkin, 2013-02-23
@nochkin

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.

A
asm0dey, 2013-02-23
@asm0dey

And you can ask the provider for a second address, then hang Apache on one address, and Tomcat on the second.

V
Vlad Zhivotnev, 2013-02-23
@inkvizitor68sl

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.

1
1nd1go, 2013-02-24
@1nd1go

Look up virtual hosts in Apache (VirtualHosts)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question