You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/sphinx-guides/source/installation/config.rst
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -115,6 +115,23 @@ See the :ref:`payara` section of :doc:`prerequisites` for details and init scrip
115
115
116
116
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.
117
117
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
+
118
135
.. _secure-password-storage:
119
136
120
137
Secure Password Storage
@@ -246,6 +263,8 @@ If you are running an installation with Apache and Payara on the same server, an
246
263
247
264
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.
248
265
266
+
This security tip is also mentioned at :ref:`payara-ports-localhost-only`.
0 commit comments