M
M
Millerish2016-11-01 13:25:09
linux
Millerish, 2016-11-01 13:25:09

Is it possible to have a subdomain on another hosting?

Good time of the day!

The organization I work for has a server. I can't use the server all the time due to security policy. It is possible to create a subdomain on the server, but the place (where actually) it will refer to will be on another hosting/server.?

Is that possible? If yes, what is the plan for doing this? (As I understand it, you need to get a direct url from the hosting to the desired directory, register a subdomain on the external url in the server host, or will it just transfer it like that?)

Answer the question

In order to leave comments, you need to log in

5 answer(s)
P
Peter, 2016-11-01
@petermzg

In DNS, write down the IP of the subdomain and that's it.

M
murlogen, 2016-11-01
@murlogen

Yes. If interaction between different subdomains is not needed inside the server, this is elementary.
If interaction is needed between subdomains (on the server, not in the browser), this is possible, but more difficult.
If interaction between subdomains is only in the browser, this is easy.
Physically different subdomains are like different domains (well, except for a special cookie policy, etc.).
The browser does not care where to load one resource from, where the second resource comes from.
In general, you can make one picture load from one host, the second from another, the third from the third - and the browser will not give this to the user in any way.

V
Vitaliy Orlov, 2016-11-01
@orlov0562

What you describe is very similar to a reverse proxy, google "reverse proxy (apache|nginx)"
But, in your case, I think it's easier in the dns records for the subdomain to register the ip of another server on which you will be developing

S
Spetros, 2016-11-01
@Spetros

The organization I work for has a server. I can't use the server all the time due to security policy. It is possible to create a subdomain on the server, but the place (where actually) it will refer to will be on another hosting/server.?

Technically possible, in practice it depends on who you are on this server: admin or user.
There may be penalties for violating the organization's security policy.

P
Puma Thailand, 2016-11-01
@opium

of course available

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question