I have a page on my local server say http://172.16.2.6:8005/abc.html
, and i want the testers to see that in a browser by some other url like http://tesing.com/abc.html
.
How to go about it?
Asked
Active
Viewed 137 times
0

Ram G Athreya
- 4,892
- 6
- 25
- 57

Arti
- 2,993
- 11
- 68
- 121
-
Some context would be helpful to answer. Why you want to do that? If its testers, you should have separate environment for them. no? – Mutant Jan 08 '14 at 05:34
-
You need a [Reverse Proxy](http://en.wikipedia.org/wiki/Reverse_proxy) on your network edge to proxy requests to and from your internal server. – brandonscript Jan 08 '14 at 05:35
-
Thank you for quick reply. I will go through the links. – Arti Jan 08 '14 at 05:45
2 Answers
1
you need to setup virtual hosting
in your server . i know for a fact that you can do this in Apache but not sure for IIS
http://httpd.apache.org/docs/current/vhosts/examples.html
and you need to setup your local dns server too in windows go to C:\Windows\System32\drivers\etc\hosts and open it with a test editor and add a line to it like :
172.16.2.6:8005 tesing
and for the abc.com part you need to setup url rewriting

Exlord
- 5,009
- 4
- 31
- 51
0
Try this in javascript preferably on page load
window.location="http://tesing.com" + window.location.pathname;

Ram G Athreya
- 4,892
- 6
- 25
- 57
-
Thank you for the reply, but this is not helping me as dis redirects to `http://tesing.com + window.location.pathname`. – Arti Jan 08 '14 at 06:35