-
1. Re: Controlling access web apps
erasmomarciano May 8, 2008 4:23 AM (in response to elvisd)Hi elvisd
Do you have only Jboss or Jboss with Apache? -
-
3. Re: Controlling access web apps
erasmomarciano May 8, 2008 6:42 AM (in response to elvisd)OK!!!!
You add the following code in xml file deploy/jboss-web.deployer/server.xml
If you add this code under the tag name engine,you are going apply tothe server
or
If you add this code under the tag name host,you are going apply to the web-application -
4. Re: Controlling access web apps
elvisd May 8, 2008 7:27 AM (in response to elvisd)Hi Erasmo,
but what code? I don't see it... can you e-mail me an example?
elvisd79@gmail.com
Thanks -
5. Re: Controlling access web apps
erasmomarciano May 8, 2008 8:23 AM (in response to elvisd)Sorry!!!
i forgot -
6. Re: Controlling access web apps
elvisd May 8, 2008 8:25 AM (in response to elvisd)Sorry... I found the code doing a quote... ;-)
You add the following code in xml file deploy/jboss-web.deployer/server.xml<Valve className="org.apache.catalina.valves.RemoteAddrValve" deny="10.XX.XX.XX"/>
If you add this code under the tag name engine,you are going apply tothe server
or
If you add this code under the tag name host,you are going apply to the web-application
I'll give it a try... Thank you Erasmo!
Kindly -
7. Re: Controlling access web apps
erasmomarciano May 8, 2008 8:32 AM (in response to elvisd)you are welcome
-
8. Re: Controlling access web apps
elvisd May 8, 2008 8:59 AM (in response to elvisd)Thank you. But when I have 2 web applications, means 2 deployed jars, and i wont to restict acces to one of this apps how to do it?
Where you have suggested i control the server, but not at app level.
Thank you. Kindly -
9. Re: Controlling access web apps
erasmomarciano May 8, 2008 9:41 AM (in response to elvisd)<Valve className="org.apache.catalina.valves.RemoteAddrValve" deny="10.XX.XX.XX"/>
You add this code
in the server.xml under the tag name host
ok? -
10. Re: Controlling access web apps
elvisd May 8, 2008 11:27 AM (in response to elvisd)You mean that for every web application i should configure an host?
-
11. Re: Controlling access web apps
erasmomarciano May 12, 2008 5:01 AM (in response to elvisd)check the server.xml, you will find the tag is already been configured.
Exmaple<Host name="testerasmo2" autoDeploy="false" deployOnStartup="false" deployXML="false" configClass="org.jboss.web.tomcat.security.config.JBossContextConfig" > <Alias>www.test.it</Alias> <Valve className="org.apache.catalina.valves.RemoteAddrValve" deny="10.xx.xx.xx"/> <Valve className="org.jboss.web.tomcat.service.jca.CachedConnectionValve" cachedConnectionManagerObjectName="jboss.jca:service=CachedConnectionManager" transactionManagerObjectName="jboss:service=TransactionManager" /> </Host>
You have to use the host tag that matches the url (ww.test.it)