IMDTouchKnowledge BaseShop main store

Troubleshooting

Why a PLCnext HMI redirects HTTP to HTTPS and what to change

HMI and touchscreens Published 7 min read

Short answer

The redirect is in the controller's nginx web-server configuration, not in the HMI project: nginx answers every HTTP request with a jump to HTTPS before the eHMI page is delivered, and an HTTP-only browser cannot follow. Edit the active nginx configuration so the HTTP branch serves or routes the HMI, keep the HTTPS branch intact, validate and reload, then verify from the customer's browser.

On this page
  1. Why does the browser land on HTTPS when I type the HTTP address?
  2. How do I confirm a redirect instead of a network fault?
  3. Why does the product page list HTTP as supported?
  4. Can I remove the redirect from the HMI project instead?
  5. What do I change so the HMI loads over HTTP?
  6. How do I verify the HMI afterwards from the HTTP-only browser?
  7. Is serving the HMI over HTTP safe to leave in place?
  8. Questions asked

Your browser lands on HTTPS because the nginx web server on the PLCnext controller answers every HTTP request with a redirect before the eHMI application is ever delivered. HTTP is supported by the AXC F 2152 protocol stack, but the active web-server configuration forces the jump, and an HTTP-only customer browser cannot follow it, so the screen never opens. The working correction is a manual adaptation of that nginx configuration: make the HTTP branch serve or route the HMI instead of redirecting, keep the HTTPS branch for every browser that can use it, validate the file, reload the web service, and verify from the customer's browser. No HMI project change removes the redirect, because the web server decides it before the project's pages are requested.

Why does the browser land on HTTPS when I type the HTTP address? #

The controller's nginx web server answers your HTTP request with a redirect to the HTTPS address, and that redirect sits in the active nginx configuration on the AXC F 2152, not in the HMI project, so no screen or tag edit can stop it.

A browser that speaks HTTPS follows that redirect silently: it issues a second request to the HTTPS address, completes the encrypted handshake and paints the page, which is why the screen opens normally on your workstation. The customer's browser cannot issue that second request, so it stops at the first response and shows an error or nothing. One configuration decision produces both behaviors: normal operation for every modern client, and a dead end for the one station that must stay on HTTP. nginx fronts the controller's browser-facing services, so the redirect is decided there, once, for all of them.

How do I confirm a redirect instead of a network fault? #

Watch the address bar while the page loads: if the address you typed under the HTTP scheme changes to the same address under the HTTPS scheme, the request reached the controller and the web server redirected it, so the network path is already proven good.

Record the address you entered, the address shown after the attempt, and the exact browser message; those three readings separate the branches before you touch any configuration.

Worked example, with example addresses: from a test PC at 192.168.1.20, request the controller at 192.168.1.50 over HTTP with the browser's developer tools open. The network view shows two requests for one page load. Request 1, HTTP to 192.168.1.50, returns a 3xx status (301 or 302 in practice) whose Location header names the same address under HTTPS. Request 2, HTTPS to 192.168.1.50, completes the handshake and returns 200 with the page. Two requests where one page load needs one is the redirect, measured. The customer's client stops after request 1, cannot issue request 2, and renders nothing.

If the address never leaves the HTTP scheme and no page opens, the request is not being answered on that path, so check reachability first and whether an HTTP listener exists at all. If the server answers with a page that is not yours, that is the same class of fault as when the browser shows the IIS page instead of your HMI runtime; a redirect is its sibling: the server answers, but not with your page.

Why does the product page list HTTP as supported? #

HTTP is supported by the controller's protocol stack — the AXC F 2152 documentation lists HTTP alongside HTTPS, FTP and OPC UA — but the shipped web-server configuration still routes browser traffic through HTTPS, and a supported protocol is not the same thing as an enabled, non-redirecting listener.

The protocol stack and the web-server configuration are different layers. Out of the box, the configuration on the controller routes browser traffic for the Web-based Management and the eHMI through HTTPS, and that routing decision is exactly what you are about to change. Both statements therefore stay true at the same time: HTTP supported, HTTP redirected. When you need to know what the front end does with an HTTP request today, read the running configuration on the controller, not the feature list.

Can I remove the redirect from the HMI project instead? #

No project change removes it: the web server decides the redirect before the HMI application is asked for anything, so screens, tags and scripts sit downstream of the branch that sends the browser to HTTPS; the working correction is a manual edit of the active nginx configuration.

Trace the order of events: the browser asks for the address, the web server answers with the redirect, and only a client that accepts the jump ever reaches the HMI application. The project, its tags and its screens all sit after that decision, which is why a fresh project download changes nothing. Stop at the web-server layer whenever the whole page redirects or never arrives; tag, driver and controller-value faults become the next branch only once the page itself loads over HTTP. For the same reason, editing controller variables cannot fix a redirect.

What do I change so the HMI loads over HTTP? #

Edit the active nginx configuration so the block that receives HTTP requests for the HMI endpoint serves or routes the application instead of returning a redirect, keep the HTTPS branch intact, then validate the file and reload the web service the way the controller documents.

The edit is deliberate manual work, done in a maintenance window, because a broken web-server configuration can take the controller's browser-facing services down with it:

  1. Save a copy of the current nginx configuration from the controller and record the browser behavior you are correcting.
  2. Locate the configuration block that receives HTTP requests for the HMI endpoint. Read the file location and the directive layout from the running controller; they depend on the installed PLCnext software, so never copy them from another project.
  3. Change that branch: where it returned the redirect to HTTPS, make it serve or route the eHMI over HTTP instead.
  4. Leave the HTTPS-serving branch untouched so every other client keeps encrypted access.
  5. Validate the edited configuration with the web-server validation method the controller provides before anything goes live.
  6. Apply the change with the controller's documented service-management procedure, which reloads the web server.
  7. Retest from the HTTP-only customer browser before the station returns to production.

If both access types are needed, this design delivers them: HTTPS as shipped, plus one HTTP path for the station that requires it. Converting the whole front end to HTTP-only is the other possibility; choose it only when the system design explicitly calls for it. The same nginx instance is also where a port collision between the eHMI and another web service on the controller gets resolved, which is a separate adjustment described in resolving PLCnext HMI HTTPS port conflicts through nginx.

How do I verify the HMI afterwards from the HTTP-only browser? #

Verification happens in the customer's actual browser, not in yours: enter the controller address with the HTTP scheme, confirm the address field never switches to the HTTPS scheme, open screens beyond the landing page, and watch one live value change with the process.

A landing page proves static delivery only. Navigate beyond the start screen so every dependent resource is requested, and confirm the address field stays on the HTTP scheme throughout. If parts of the page refuse to render while others work, check whether the browser is blocking content delivered on the other scheme; that mixed-scheme case and its fix are described in displaying a WinCC Unified HTTP page in an HTTPS browser. Then watch one safe live value change with the process, which proves the data path behind the page. Finish in the customer's actual browser, because scheme support differs between clients and yours is the one that hides the redirect.

Is serving the HMI over HTTP safe to leave in place? #

Treat the HTTP path as an unencrypted exception on a controlled network: acceptable on a segmented industrial network with restricted access, never across a plant boundary or the internet, where anything on the path can read the traffic, including any credentials the HMI exchange.

When only one legacy browser needs HTTP, keep the dual design: HTTPS stays as shipped for every client that can use it, and the HTTP path exists for that one station, on the segment that station sits on. Document why the exception exists and who can reach it, because the next engineer will otherwise read the removed redirect as a mistake. The decision, case by case:

  • Customer browser is HTTP-only and the station must run: edit the nginx configuration so the HTTP branch serves or routes the eHMI, keep the HTTPS branch intact, validate, reload, and verify from that browser.
  • Every client at the machine speaks HTTPS: change nothing, because the redirect is the better default and the encrypted path needs no exception.
  • The HTTP page would have to leave the controlled network: do not extend the HTTP path; put the client on the controlled segment or use an HTTPS-capable browser instead.

Questions asked

Will a firmware update bring the HTTPS redirect back?

It can. Firmware maintenance or a configuration replacement can restore the shipped nginx configuration, and with it the redirect. Keep a dated copy of your edited configuration outside the controller, retest from the HTTP-only browser after every update, and if the redirect returns, reapply the edit and revalidate before the station goes back into production.

Why does the page load for me but not for the customer on the same address?

Your browser supports HTTPS, so it follows the redirect silently and the page appears normally; the jump never shows up as an error on your side. The customer's browser cannot make the second, HTTPS request, so the same address stops at the first response. Same server, same configuration, different client capability.

Do I have to restart the controller after editing the nginx configuration?

No. The edit takes effect when the web server reloads its configuration, which is what the controller's documented service-management procedure does. A restart is not a test of the edit: validate the file, reload the service, and confirm the result from the HTTP-only browser. Keep your saved copy ready until that retest passes.

Does the redirect affect other browser-facing services on the controller?

It can. nginx is the one web server fronting the controller's browser-facing services, so the Web-based Management and any other HTTP endpoint meet the same configuration as the eHMI. After the edit, test each service you actually use from the HTTP-only client, and expect any endpoint you did not touch in the edit to keep redirecting.

Keep reading

  • Troubleshooting

    Why an HMI VNC Session Shows a Black Screen but Input Works

    When a VNC session to an HMI authenticates, stays black, and clicks at known button positions still actuate the physical panel, the remote-control path is healthy and only the framebuffer-update path is failing. Compare the local screen, confirm authentication, run one observed input test, then take the display-delivery branch: check the access route and client, and get the panel firmware or engineering-software revision that restores screen delivery. Leave tags, drivers and cabling alone.

    HMI and touchscreens

  • Troubleshooting

    Why the USB Tethering Status Word Stays at 0 on an HMI

    Check LW-11381, the USB tethering status word — 0 no device, 1 disconnected, 2 connected, 3 fail, 4 OS not supported, 5 HMI not supported — instead of LW-11379, which proves nothing. When LW-11381 reads 1, write 1 to LW-11380 to start the connection; write 0 to stop. A dongle shown as compatible in EasyBuilder Pro can still fail on a different hardware or firmware revision, so prove each unit and revision.

    HMI and touchscreens

  • How-to

    Which TCP ports to forward for remote Weintek HMI access

    On a standard Weintek panel, forward only the service you need: TCP 20248 for EasyBuilder downloads, 5900 for VNC, 21 for FTP, 8000 for HMI communication and 2000 for pass-through. A cMT-SVR instead needs TCP 80, 8000, 10763 and UDP 10275. Port 8000 is not pass-through, and no rule works until the cellular WAN address is genuinely reachable inbound.

    HMI and touchscreens