# HTTP or Webserver with Node-Red

**URL:** <https://discourse.nodered.org/t/http-or-webserver-with-node-red/94719>\
**Category:** General\
**Created:** [18 January 2025 19:29 UTC](https://discourse.nodered.org/t/http-or-webserver-with-node-red/94719 "2025-01-18T19:29:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andre7tyone](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andre7tyone/32/77055_2.png) [@Andre7tyone](https://discourse.nodered.org/u/Andre7tyone)\
**Post date:** [18 January 2025 19:29 UTC](https://discourse.nodered.org/t/http-or-webserver-with-node-red/94719/1 "2025-01-18T19:29:16Z")

</div>

Hello,  
I want to display a webpage if I call the Node-Red server IP with the name defined in the "http\_in" node. Example:  
\<ip\_of\_raspberry:1880/index.php\>  
This works, but if I click on a button in this webpage to go to an subpage, then a window opens, that wants to store this subpage. I tried to modify the settings file at this entry:

httpStatic: '/home/nol/node-red-static/', //single static source

Here I changed the path to my webpage, that worked, but the problem was not solved.  
Can anyone help me?

Thanks,  
Andre

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [18 January 2025 20:38 UTC](https://discourse.nodered.org/t/http-or-webserver-with-node-red/94719/2 "2025-01-18T20:38:34Z")

</div>

> [@Andre7tyone](#):
>
> \<ip\_of\_raspberry:1880/index.php\>

Node-RED uses Node.js and ExpressJS not PHP.

> [@Andre7tyone](#):
>
> This works, but if I click on a button in this webpage to go to an subpage, then a window opens, that wants to store this subpage.

If the sub-page is also ending in `.php`, that would be expected since Node-RED is not a PHP web server.

> [@Andre7tyone](#):
>
> httpStatic: '/home/nol/node-red-static/', //single static source

The static folder (and hopefully you noticed that `/home/nol` is @knolleary's personal PC not yours 🙂 ) will serve static resources. So a `.html` file, or `.js`, images, etc. (if loaded correctly by a web page).

Use of the `http-in` node also requires a matching `http-response` node and between them, you can create more dynamic pages thanks to the built-in ExpressJS server.

Similarly, you could use UIBUILDER or Dashboard nodes which may give you more to work with. UIBUILDER in particular may be of help with what you want to do.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [18 April 2025 20:39 UTC](https://discourse.nodered.org/t/http-or-webserver-with-node-red/94719/3 "2025-04-18T20:39:26Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
