NoMachine Support

Your questions answered

Knowledge Base

Searching in: Articles & FAQs
Filter the search results
Applies to:
Last update:
Searching in: Articles & FAQs
ID: AR07P00986
Applies to: NX Server Products
Added on: 2018-07-04
Last update: 2019-08-19
How to disable web connections by HTTPS and use only HTTP

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:
 
<VirtualHost _default_:*>
RewriteEngine on

        ReWriteCond %SERVER_PORT !^4443$
        RewriteRule ^/(.*) https://%SERVER_ADDR:4443/nxwebplayer [R,L]
</VirtualHost>

 

Comment them by pre-pending a #,  to disable the redirect directive.

These lines, after commenting them, should look like:

 
#<VirtualHost _default_:*>
#RewriteEngine on
#
#        ReWriteCond %SERVER_PORT !^4443$
#        RewriteRule ^/(.*) https://%SERVER_ADDR:4443/nxwebplayer [R,L]
#</VirtualHost>

 

Step 3 -  Start nxhtd

For example on Linux:

sudo /etc/NX/nxserver --start nxhtd

Note:

In order to use HTTP, type in the browser, for example:
http://127.0.0.1:4080

HTTPS is still available if requested explicitly, e.g.:
https://127.0.0.1:4443/nxwebplayer

127.0.0.1 is just an example, it has to be replaced with the proper IP or hostname of the server host.