i have application hosted on jboss AS 3.2.1.
The host machine has multpile aliases in DNS like hostname1.au.company, hostname1,Aliases1.au.company,Aliases1 .
I want to restrict the people from accessing the application using hostname1.au.company, hostname1.
for this i have made this modification in jboss-service.xml in /opt/jboss/server/default/deploy/jbossweb-tomcat.sar/META-INF
<Engine name="MainEngine" defaultHost="localhost">
<Logger className = "org.jboss.web.catalina.Log4jLogger"
verbosityLevel = "debug" category = "org.jboss.web.localhost.Engine"/>
<Host name="localhost">
<!-- Access logger -->
<Valve className = "org.apache.catalina.valves.AccessLogValve"
prefix = "localhost_access" suffix = ".log"
pattern = "common" directory = "${jboss.server.home.dir}/log" />
<!-- Default context parameters -->
<DefaultContext cookies = "true" crossContext = "true" override = "false" />
<Valve className="org.apache.catalina.valves.RemoteHostValve" deny="hostname1*" />
<Valve className="org.apache.catalina.valves.RemoteHostValve" allow="Aliases1*" />
</Host>
</Engine>
now the application shows forbidden page when in use hostname1.au.company, hostname1,Aliases1.au.company,Aliases1 address.
is there something i am missing here.
thanks in advance.