A
A
AdminServer2017-03-24 09:14:39
Domain name market
AdminServer, 2017-03-24 09:14:39

One domain for the site and the game server?

There is one domain domen.com, and it must have a game server on port 7777, and a site on port 80, but they must be on two different servers and IP. Is it possible to organize this? If so, how?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
I
index0h, 2017-03-24
@index0h

Let me rephrase the question: one car must have an engine and doors. Is it possible to do this? If so, how?
It is necessary that your web server listens to port 80, and the game server - 7777. How to do this - get into the game server settings and specify the port, for the web server the 80th is usually the default.

R
Ruslan Fedoseev, 2017-03-24
@martin74ua

Theoretically, you can redirect traffic through iptables. Or by the lvs mechanism.
But it's better to spread it across subdomains.

A
Alexander, 2017-03-24
@NeiroNx

install nginx on the game server and redirect traffic to another server

M
mureevms, 2017-03-24
@mureevms

It seems to me that the solution would be to hang the site on www.domain.com, and the application on domain.com.
All links in the search engine will lead to www, and for those who come directly, redirect from the application server to the server with the site using a web server.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question