-
1. Re: accessing jboss servers with two instances in one machine unable to access by different domain names
kuldeep11 Feb 13, 2014 9:06 AM (in response to rajeshk378)Enable Debugging for apache and then please share logs.
-
2. Re: accessing jboss servers with two instances in one machine unable to access by different domain names
spolti Feb 13, 2014 10:47 AM (in response to rajeshk378)You ProxyPass ts wrong, try this conf:
And, i don't know why you are using Rewrite Rule, remove this.....<VirtualHost *:80>
ServerName www.xyz.com
ServerAlias xyz.com
ProxyPass / ajp://localhost:8010/app2
ProxyPassReverse / ajp://localhost:8010/app2
ErrorLog logs/xyz-error_log
CustomLog logs/xyz-access_log combined
JkMount /foo/* foo #this are correct?
</VirtualHost><VirtualHost *:80>
ServerName www.abc.com
ServerAlias abc.com
ProxyPass / ajp://localhost:8009/foo
ProxyPassReverse / ajp://localhost:8009/foo
ErrorLog logs/abc-error_log
CustomLog logs/abc access_log combined
JkMount /foo/* foo #this are correct?
</VirtualHost>PS: I prefer use http instead ajp, i already had preformance issues when using ajp protocol.
In this case the context root is "/", you can now access your app through domain abc and xyz.
Your domains must resolve the apache ip address to work.
Rgz