Skip to content

Commit

Permalink
Merge pull request IQSS#5320 from IQSS/5319-doc_localhost_glassfish
Browse files Browse the repository at this point in the history
document how to configure glassfish to listen from localhost only
  • Loading branch information
kcondon authored Nov 16, 2018
2 parents 086e60c + c10b75f commit 0045cd6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doc/sphinx-guides/source/installation/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ If you really don't want to front Glassfish with any proxy (not recommended), yo

What about port 80? Even if you don't front Dataverse with Apache, you may want to let Apache run on port 80 just to rewrite HTTP to HTTPS as described above. You can use a similar command as above to change the HTTP port that Glassfish uses from 8080 to 80 (substitute ``http-listener-1.port=80``). Glassfish can be used to enforce HTTPS on its own without Apache, but configuring this is an exercise for the reader. Answers here may be helpful: http://stackoverflow.com/questions/25122025/glassfish-v4-java-7-port-unification-error-not-able-to-redirect-http-to

If you are running an installation with Apache and Glassfish on the same server, and would like to restrict Glassfish from responding to any requests to port 8080 from external hosts (in other words, not through Apache), you can restrict the AJP listener to localhost only with:

``./asadmin set server-config.network-config.network-listeners.network-listener.http-listener-1.address=127.0.0.1``

You should **NOT** use the configuration option above if you are running in a load-balanced environment, or otherwise have the web server on a different host than the application server.

Root Dataverse Permissions
--------------------------

Expand Down

0 comments on commit 0045cd6

Please sign in to comment.