I have an application in my server for example at www.myDomain.com/pos, my client wants to run this application with his domain name As: www.clienDomain.com/pos. But i don't want to install my application to client server. is there any way to access my server with clientDomain name?
Asked
Active
Viewed 784 times
2
-
I think you could have the client's server make a proxy request to your server. – chris85 Dec 31 '16 at 20:13
-
...or just have him point the DNS to your server. – motanelu Dec 31 '16 at 20:14
-
what is the process ? could you explain please?? – Hafiz Sarker Dec 31 '16 at 20:17
-
See https://httpd.apache.org/docs/2.4/rewrite/proxy.html. – chris85 Dec 31 '16 at 20:21
1 Answers
1
Yes very possible.
If your client is running Apache, and has mod_proxy
installed, most do by default.
Then you can use .htaccess
directives like so:
ProxyPassReverse "/pos" "http://example.com/pos"
In addition, reverse proxies can be used simply to bring several servers into the same URL space.
More info here:
https://httpd.apache.org/docs/current/mod/mod_proxy.html#proxypass

Phil Poore
- 2,086
- 19
- 30