1 of 1 people found this helpful
You try to use a external web application and the admin console on the same JBoss but you want to limit the admin console to internal use.
I see the posibillity if you bind to a local IP address and access the web site from external via apache with a filter to deny the admin URL.
Internal you can access the JBoss directly.
Thanks, but that would not allow to access the admin site externally from our IP.
But it brought me the following idea:
bind JBoss to localhost and define two proxies in Apache, one for my web app and one for all URLs like this:
ProxyPass /myapp ajp://127.0.0.1:8009/myapp
ProxyPassReverse /myapp ajp://127.0.0.1:8009/myapp
ProxyPass / ajp://127.0.0.1:8009/
ProxyPassReverse / ajp://127.0.0.1:8009/
and a filter to limit the access to the general proxy:
Deny from all
Allow from officeIP
The problem where I am stuck is the regexp: it must match all URLs except the ones containing /myapp.
seems to work.