# Is it possible to run nr on a apache webserver?

**URL:** <https://discourse.nodered.org/t/is-it-possible-to-run-nr-on-a-apache-webserver/43498>\
**Category:** General\
**Created:** [1 April 2021 09:18 UTC](https://discourse.nodered.org/t/is-it-possible-to-run-nr-on-a-apache-webserver/43498 "2021-04-01T09:18:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![YT2310](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/yt2310/32/35255_2.png) [@YT2310](https://discourse.nodered.org/u/YT2310)\
**Post date:** [1 April 2021 09:18 UTC](https://discourse.nodered.org/t/is-it-possible-to-run-nr-on-a-apache-webserver/43498/1 "2021-04-01T09:18:47Z")

</div>

Hey there,

I m just wondering if its possible to run nr on a web server?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [1 April 2021 09:34 UTC](https://discourse.nodered.org/t/is-it-possible-to-run-nr-on-a-apache-webserver/43498/2 "2021-04-01T09:34:32Z")

</div>

node-red is (amongst other things) effectively a web server itself (it runs node + express)

If you mean serve its pages via apache, then maybe this will help...

> **[Set Up a Node.js App for a Website With Apache on Ubuntu 16.04](https://www.ionos.com/digitalguide/websites/web-development/nodejs-for-a-website-with-apache-on-ubuntu/)**
>
> Node.js is a JavaScript runtime environment which lets you easily build server-side applications. This tutorial will explain how to set up a Cloud Server running Ubuntu 16.04 so that Node.js scripts run as a service, and configure the Apache server...

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [1 April 2021 09:36 UTC](https://discourse.nodered.org/t/is-it-possible-to-run-nr-on-a-apache-webserver/43498/3 "2021-04-01T09:36:58Z")

</div>

You can run node red on a server that is also running apache if that is what you mean.

---

<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:** [1 April 2021 21:46 UTC](https://discourse.nodered.org/t/is-it-possible-to-run-nr-on-a-apache-webserver/43498/4 "2021-04-01T21:46:50Z")

</div>

You can also use something like Phusion Passenger to control Node-RED from behind Apache. That used to be a common way to get some performance gains in node.js apps.

Most likely these days, you would use your web server to hide the inner workings of Node-RED from the outside world and possibly to offload TLS, authentication and maybe authorisation processing. See my recent FAQ on configuring NGINX with Node-RED for some ideas, you can do similar things with Apache. You may also use your web server to cache static resources - that are served by node-red but don't change much. Or even deliver static resources rather than making Node-RED do all the work.

---

<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:** [31 May 2021 21:46 UTC](https://discourse.nodered.org/t/is-it-possible-to-run-nr-on-a-apache-webserver/43498/5 "2021-05-31T21:46:59Z")

</div>

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