Portal Home > Knowledgebase > Articles Database > Two servers, one domain
Two servers, one domain
Posted by Eiolon, 07-13-2013, 06:31 PM |
Hi folks,
Our company website is hosted externally. However, we do have an internal web server to take care of some things that cannot be done on the external service.
So I am wondering if it's possible to have www.ourcompany.com work for the external service but have a certain directory be used on the internal one (www.ourcompany.com/directory). I don't want a forwarder or different URL. I'd like it to be transparent to the user so they feel they are still on our real website and not some spoofed site.
|
Posted by zoid, 07-13-2013, 06:47 PM |
What about intra.ourcompany.com? That would be a different host but the intended solution for this.
Alternatively you could only work with some sort of reverse proxy.
|
Posted by chrismfz, 07-14-2013, 01:26 AM |
What web server are you running ? You can use proxy module.
If you use apache for example:
http://httpd.apache.org/docs/2.2/mod/mod_proxy.html
|
Posted by BestServerSupport, 07-14-2013, 12:44 PM |
You can set up a sub domain on external web server and point A record of that sub domain to your internal web server. But please make sure that in this case you should have a dedicated IP address in your internal web server.
|
Posted by activelobby4u, 07-14-2013, 08:06 PM |
Another way of doing things is to sync the folders across external and internal servers except the directory you need. Once done, configure an internal dns server (or a hosts file entry) which will target for the domain as the internal server.
The only problem with this scenario is that you will need to sync the internal and external db and files every 30 min or so to keep everything updated. An rsync would help
|
Posted by Yujin, 07-14-2013, 10:07 PM |
Yes Chief, this is possible..
www.yourcompany.com -> External Server IP
internal.yourcompany.com -> Internal Server IP (static)
But just a reminder, be careful with your security (DMZ) if this internal server is connected to your LAN and you're making this available to public.
|
Add to Favourites Print this Article
Also Read