The NoMachine web server, nxhtd, which is a minimal Apache web server, configured by default to redirect all HTTP requests to secure HTTPS.
Even if this is the advisable configuration in almost cases, administrators may wish to connect NoMachine web sessions only by HTTP.
These are the steps to disable HTTPS in nxhtd.
Step 1 - Stop nxhtd.
For example on Linux, run from command line:
sudo /etc/NX/nxserver --stop nxhtd
Step 2 - Edit the /usr/NX/etc/htd.cfg file and looks for the following lines:
ReWriteCond %SERVER_PORT !^4443$
RewriteRule ^/(.*) https://%SERVER_ADDR:4443/nxwebplayer [R,L]
Comment them by pre-pending a #, to disable the redirect directive.
These lines, after commenting them, should look like:
# ReWriteCond %SERVER_PORT !^4443$
# RewriteRule ^/(.*) https://%SERVER_ADDR:4443/nxwebplayer [R,L]
Step 3 - Start nxhtd
For example on Linux:
sudo /etc/NX/nxserver --start nxhtd
In order to use HTTP, type in the browser, for example:
HTTPS is still available if requested explicitly, e.g.:
127.0.0.1 is just an example, it has to be replaced with the proper IP or hostname of the server host.