views:

46

answers:

2
A: 

In httpd.conf, you could, instead of the current redirection define the appropriate DocumentRoot for the VirtualHost corresponding to sub.abcd.com. The DocumentRoot should be wherever myprogram is located on the disk

Dominik
Thank you so much for your reply. The Apache server is on sever1 while my program is on server 2. Does this matter?
David
Yes, if they are on two different servers, the above suggestion unfortunately won't work as is
Dominik
A: 

Ask your web master to set up sub.abcd.com on server1 (and not as a redirect) and then if he/she can setup a ProxyPass and a ProxyPassReverse on server1 to server2. This is typical for web servers that are in front of application servers.

We have a similar setup and ProxyPass works well for us with applications resideing on other servers.

HTH,

KM

KM