Skip to content

Commit e71a546

Browse files
ofahimIQSSpdurbin
andauthored
have paraya listen only on localhost (#11756)
Co-authored-by: Philip Durbin <[email protected]>
1 parent f77bb8c commit e71a546

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

doc/sphinx-guides/source/installation/config.rst

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,23 @@ See the :ref:`payara` section of :doc:`prerequisites` for details and init scrip
115115

116116
Related to this is that you should remove ``/root/.payara/pass`` to ensure that Payara isn't ever accidentally started as root. Without the password, Payara won't be able to start as root, which is a good thing.
117117

118+
.. _payara-ports-localhost-only:
119+
120+
Restricting Payara's Ports to localhost
121+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
122+
123+
In the recommended setup of Dataverse, you do not expose Payara's ports directly to the Internet. Rather, you front Payara with a proxy such as Apache.
124+
125+
If you are running Payara and your proxy on the same server, we recommend having Payara listen only to localhost, which is how your proxy talks to it, with the following command:
126+
127+
``./asadmin set server-config.network-config.network-listeners.network-listener.http-listener-1.address=127.0.0.1``
128+
129+
(You should **NOT** use the configuration option above if you are running in a load-balanced environment, or otherwise have your proxy on a different host than Payara.)
130+
131+
To test that Payara is now only listening on localhost, try hitting port 8080 from the Internet. Payara should not respond.
132+
133+
See also :ref:`network-ports`.
134+
118135
.. _secure-password-storage:
119136

120137
Secure Password Storage
@@ -246,6 +263,8 @@ If you are running an installation with Apache and Payara on the same server, an
246263

247264
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.
248265

266+
This security tip is also mentioned at :ref:`payara-ports-localhost-only`.
267+
249268
.. _root-collection-permissions:
250269

251270
Root Dataverse Collection Permissions

0 commit comments

Comments
 (0)