# Proxy port 1880 behind Apache

**URL:** https://discourse.nodered.org/t/proxy-port-1880-behind-apache/42045
**Category:** General
**Created:** [4 March 2021 18:25 UTC](https://discourse.nodered.org/t/proxy-port-1880-behind-apache/42045 "2021-03-04T18:25:28Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![jtaylor](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@jtaylor](https://discourse.nodered.org/u/jtaylor)
#### Post date: [4 March 2021 18:25 UTC](https://discourse.nodered.org/t/proxy-port-1880-behind-apache/42045/1 "2021-03-04T18:25:28Z")

</div>

I need to proxy the Node-RED console (http://host\_name:1880) behind Apache. The page comes down fine, but all of the resources required by the page fail with:  
Status Code: 502 Proxy error -  
Remote Address: (Apache IP)  
Referrer Policy: strict-origin-when-cross-origin

I checked high and low on Google, but I haven't been able to find anything. Do anyone have any suggestions?

TIA

---

<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: [4 March 2021 20:14 UTC](https://discourse.nodered.org/t/proxy-port-1880-behind-apache/42045/2 "2021-03-04T20:14:27Z")

</div>

THere are various reasons you might get a 502 but the most likely in the case of Node-RED is that the translated request no longer makes sense to Node-RED and so the proxy gets the equivalent of shrugged shoulders.

Check the Apache logs for errors coming back from Node-RED.

You haven't told us what resources you are asking for nor what kind of page you are requesting so it is hard to give more specifics. Node-RED has many options for serving up web resources: the static folder, built-in admin resources, all of the dashboard resources, http-in/-out resources, uibuilder resources, etc.

---

<div class="post-metadata">

### Author: ![jtaylor](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@jtaylor](https://discourse.nodered.org/u/jtaylor)
#### Post date: [4 March 2021 20:41 UTC](https://discourse.nodered.org/t/proxy-port-1880-behind-apache/42045/3 "2021-03-04T20:41:09Z")

</div>

The homepage is what won't load, just the default http://host\_name:1880. The HTML comes down, but it errors on the resources required for the HTML.

The 502 is on:

- jquery-ui.min.css
- font-awesome.min.css
- style.min.css
- vendor.js
- red.min.js
- main.min.js
- favicon.ico

All I saw in the Apache logs before were the 502 errors, but I'll check again to make sure.

---

<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: [4 March 2021 20:42 UTC](https://discourse.nodered.org/t/proxy-port-1880-behind-apache/42045/4 "2021-03-04T20:42:48Z")

</div>

You might want to share the relevant part of your Apache config (though not sure I can remember how it should look now, not used Apache for a long time).

I assume that Node-RED and Apache are on the same device?

---

<div class="post-metadata">

### Author: ![jtaylor](https://avatars.discourse-cdn.com/v4/letter/j/e79b87/32.png) [@jtaylor](https://discourse.nodered.org/u/jtaylor)
#### Post date: [4 March 2021 21:22 UTC](https://discourse.nodered.org/t/proxy-port-1880-behind-apache/42045/5 "2021-03-04T21:22:26Z")

</div>

I found it, it was operator error. 😊

I added a trailing slash to my ProxyPass directive, and voila! Originally it ended with the port#.

```auto
ProxyPass /node-red/ http://127.0.0.1:1880/

```

@TotallyInformation are you shooting a bow in your avatar? Cool, small world.

Thanks for the help

---

<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: [4 March 2021 21:26 UTC](https://discourse.nodered.org/t/proxy-port-1880-behind-apache/42045/6 "2021-03-04T21:26:16Z")

</div>

> [@jtaylor](#):
>
> are you shooting a bow in your avatar? Cool, small world.

Yes, I went through a an archery phase. I'd love to still do it but there wasn't a nearby club. Found it incredibly relaxing. Something to do with the focus required I think.

That particular day was a notable day out in Sherwood Forrest. My son dressed in his Robin Hood outfit. They had some people allowing longbow demo's and you could have a go. Good fun.

---

<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 March 2021 21:27 UTC](https://discourse.nodered.org/t/proxy-port-1880-behind-apache/42045/7 "2021-03-18T21:27:14Z")

</div>

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