Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I restrict access to some web-app deployed in Glassfish from certain IPs ? Are there any internal access control in Glassfish or I need to proxy it with external nginx or Apache ?

share|improve this question
up vote 0 down vote accepted

Yes, if you are using a Virtual Server in glassfish then you can use allowRemoteAddress , denyRemoteAddress, allowRemoteHost and denyRemoteHost properties to deny/accept connections from certain IP's.

in Glassfish DAS go to configurations -> http-service-> Virtual Servers and then configure your properties there (under a non cluster glassfish the Virtual Servers are under Server configuration)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.