# Multiple httpStatic folders in NodeRED

**URL:** <https://discourse.nodered.org/t/multiple-httpstatic-folders-in-nodered/60458>\
**Category:** General\
**Created:** [28 March 2022 13:47 UTC](https://discourse.nodered.org/t/multiple-httpstatic-folders-in-nodered/60458 "2022-03-28T13:47:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![softy2k](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/softy2k/32/23707_2.png) [@softy2k](https://discourse.nodered.org/u/softy2k)\
**Post date:** [28 March 2022 13:47 UTC](https://discourse.nodered.org/t/multiple-httpstatic-folders-in-nodered/60458/1 "2022-03-28T13:47:36Z")

</div>

Is it possible to have multiple **httpStatic folders** in NodeRED (defined in **settings.js** ) ?

Something like **`httpStatic: ['C:/FolderX', 'D:/FolderY']`**

---

<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:** [28 March 2022 14:24 UTC](https://discourse.nodered.org/t/multiple-httpstatic-folders-in-nodered/60458/2 "2022-03-28T14:24:02Z")

</div>

No, but you could use a simlink (junction) so that

`c:/static` contains a FolderX (`c:/FolderX`) and a FolderY (`d:/FolderY`) then set httpStatic to `c:/static`

e.g: [https://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/](https://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/)

---

<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:** [28 March 2022 16:53 UTC](https://discourse.nodered.org/t/multiple-httpstatic-folders-in-nodered/60458/3 "2022-03-28T16:53:22Z")

</div>

Or you could abuse uibuilder since it effectively creates a new static folder for every instance of the node.

The only problem being that you will have to follow the uibuilder folder locations - though as Steve says, it is perfectly possible to use simlinks to position uibuilder folders where you want and then link them to the location that uibuilder needs.

---

<div class="post-metadata">

**Author:** ![buglss](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/buglss/32/59277_2.png) [@buglss](https://discourse.nodered.org/u/buglss)\
**Post date:** [29 March 2022 20:15 UTC](https://discourse.nodered.org/t/multiple-httpstatic-folders-in-nodered/60458/4 "2022-03-29T20:15:40Z")

</div>

I also faced this problem. My solutions is below. For now I'm using it by running my own red.js file.

- Embed node-red Solution: [Custom red.js for Multible httpStatic Folders · GitHub](https://gist.github.com/buglss/11738d9cd390ab73355fc246a3f8b1b6)
- Pull Request Solution: [Multi-path support added to httpStatic. by buglss · Pull Request #3510 · node-red/node-red · GitHub](https://github.com/node-red/node-red/pull/3510)

---

<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:** [28 May 2022 20:16 UTC](https://discourse.nodered.org/t/multiple-httpstatic-folders-in-nodered/60458/5 "2022-05-28T20:16:16Z")

</div>

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