My program is situated at http://server2.abcd.com/myprogram/.

Our website owner provides a subdomain: http://sub.abcd.com for me personally. This subdomain will redirect to http://server2.abcd.com/myprogram/. The redirect configuration was completed in the httpd.conf. Every time a user visit http://sub.abcd.com he'll be rerouted to http://server2.abcd.com/myprogram/

I'd rather not confuse customers. I would like customers to remain using the subdomain. For instance, they are doing sign in with http://sub.abcd.com/login.jsp instead of http://http://server2.abcd.com/myprogram/login.jsp. What must i do?

We use Unix, Apache and Tomcat5.

In httpd.conf, you can, rather than the present redirection define the right DocumentRoot for that VirtualHost akin to sub.abcd.com. The DocumentRoot ought to be wherever myprogram is situated around the disk

Request your internet master to setup sub.abcd.com on server1 (and never like a redirect) after which if he/she will setup a ProxyPass along with a ProxyPassReverse on server1 to server2. This really is typical for web servers which are before application servers.

There exists a similar setup and ProxyPass can be useful for us with programs resideing on other servers.

HTH,

KM