# 'Nextcloud + lighttpd setup' help needed

**URL:** https://dietpi.com/forum/t/nextcloud-lighttpd-setup-help-needed/6160
**Category:** General Discussion
**Created:** [8 January 2022 20:09 UTC](https://dietpi.com/forum/t/nextcloud-lighttpd-setup-help-needed/6160 "2022-01-08T20:09:16Z")
**Posts on this page:** 12
**Page:** 2

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [20 February 2022 00:00 UTC](https://dietpi.com/forum/t/nextcloud-lighttpd-setup-help-needed/6160/21 "2022-02-20T00:00:47Z")

</div>

> 😛 \> Yes I know it , but the rest of the world doesn’t, so port 80 is forwarded from the WWW to the standard lighttpd webinterface
> 
> How to secure this?

Activate SSL/HTPS using dietpi-letsencrypt and forward port 443 on your router as well.

---

<div class="post-metadata">

### Author: ![hemertje](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/h/cdc98d/32.png) [@hemertje](https://dietpi.com/forum/u/hemertje)
#### Post date: [21 February 2022 15:08 UTC](https://dietpi.com/forum/t/nextcloud-lighttpd-setup-help-needed/6160/22 "2022-02-21T15:08:32Z")

</div>

> [@](#):
>
> > [@](#):
> >
> > Still for me Heimdall is not a good web app. Not that flexible to work on a sub folder. For me this is a must, to be able to run multiple web apps next to each other. But we are moving off topic I guess.
> 
> Asked for Help at the Heimdall Support chat
> 
> [Discord](https://discord.com/channels/354974912613449730/413430508131975171/944697719866400799)

an answer…

> j0nnymoe — Today at 10:59 AM  
> @hemertje generally we recommend installing it via docker  
> But if you plan to do it without, then yes you need a webserver

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [22 February 2022 06:38 UTC](https://dietpi.com/forum/t/nextcloud-lighttpd-setup-help-needed/6160/23 "2022-02-22T06:38:26Z")

</div>

not really. The need to a web server is clear. More the question if it can run with a sub path 😉

---

<div class="post-metadata">

### Author: ![hemertje](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/h/cdc98d/32.png) [@hemertje](https://dietpi.com/forum/u/hemertje)
#### Post date: [23 February 2022 22:03 UTC](https://dietpi.com/forum/t/nextcloud-lighttpd-setup-help-needed/6160/24 "2022-02-23T22:03:16Z")

</div>

> [@](#):
>
> not really. The need to a web server is clear. More the question if it can run with a sub path 😉

do you mean like [server.com/heimdall](http://server.com/heimdall)?

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [24 February 2022 08:46 UTC](https://dietpi.com/forum/t/nextcloud-lighttpd-setup-help-needed/6160/25 "2022-02-24T08:46:13Z")

</div>

> do you mean like [server.com/heimdall](http://server.com/heimdall)?

yes

---

<div class="post-metadata">

### Author: ![hemertje](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/h/cdc98d/32.png) [@hemertje](https://dietpi.com/forum/u/hemertje)
#### Post date: [24 February 2022 17:34 UTC](https://dietpi.com/forum/t/nextcloud-lighttpd-setup-help-needed/6160/26 "2022-02-24T17:34:35Z")

</div>

> HackitZ(42) — Today at 3:01 AM  
> subdomain would look like \> [http://heimdall.server.com/](http://heimdall.server.com/) \> where subfolder would look like \> [http://server.com/heimdall](http://server.com/heimdall)\> . the reverse proxy if using swag is located appdata/swag/nginx/proxy-confs in this folder are all the proxy confs for the apps. this is what mine looks like (/srv/dev-disk-by-uuid-c02f9840-5c78-47e3-9277-345213d858b3/appdata/swag:/config)  
>   
>   
>   
> Blue\_Yoshi2015 — Today at 4:47 PM  
> @HackitZ(42) Has it right. You just need to configure SWAG by changing the proxy-conf file for Heimdall. Be sure to use the subfolder one for [server.com/heimdall](http://server.com/heimdall), rather than the subdomain one [heimdall.server.com](http://heimdall.server.com)

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [24 February 2022 20:25 UTC](https://dietpi.com/forum/t/nextcloud-lighttpd-setup-help-needed/6160/27 "2022-02-24T20:25:08Z")

</div>

well if we like to implement Haimdall on DietPi, it would need to run without any proxy. It should support sub path ootb directly on the web server 😉

Ah and it should work without docker 🕶

---

<div class="post-metadata">

### Author: ![hemertje](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/h/cdc98d/32.png) [@hemertje](https://dietpi.com/forum/u/hemertje)
#### Post date: [26 February 2022 12:38 UTC](https://dietpi.com/forum/t/nextcloud-lighttpd-setup-help-needed/6160/28 "2022-02-26T12:38:22Z")

</div>

> hemertje — Yesterday at 4:58 PM  
> What to change in the proxy-conf file for Heimdall.?  
>   
>   
>   
> Blue\_Yoshi2015 — Today at 2:49 AM  
> So there is a trick to Heimdall specifically. If you are using any authentication, which you should, set that in the heimdall conf file. But you have to make a change to the default file as well.  
> @hemertje in the site-confs folder. I think it’s lines 37 and 50 that need to be commented out, as well as any lines between that contain code.  
> @hemertje There’s actually a sample in that file starting on line 126. You’ll just have to configure it for whatever authentication you are using. But is there a reason you want to use heimdall in a subfolder in the first place?

---

<div class="post-metadata">

### Author: ![hemertje](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/h/cdc98d/32.png) [@hemertje](https://dietpi.com/forum/u/hemertje)
#### Post date: [26 February 2022 12:38 UTC](https://dietpi.com/forum/t/nextcloud-lighttpd-setup-help-needed/6160/29 "2022-02-26T12:38:37Z")

</div>

> hemertje — Today at 1:36 PM  
> Hi Mr Blue \> 😉 \> can Heimdall run without any proxy. Is it supporting sub path ootb directly on the web server?

---

<div class="post-metadata">

### Author: ![hemertje](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/h/cdc98d/32.png) [@hemertje](https://dietpi.com/forum/u/hemertje)
#### Post date: [26 February 2022 13:03 UTC](https://dietpi.com/forum/t/nextcloud-lighttpd-setup-help-needed/6160/30 "2022-02-26T13:03:52Z")

</div>

> [@](#):
>
> > hemertje — Today at 1:36 PM  
> > Hi Mr Blue \> 😉 \> can Heimdall run without any proxy. Is it supporting sub path ootb directly on the web server?

> Blue\_Yoshi2015 — Today at 1:59 PM  
> I’m not sure. I would highly recommend a reverse proxy for web apps like sonarr, radarr, etc. It isn’t exactly secure to host them without.

---

<div class="post-metadata">

### Author: ![hemertje](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/h/cdc98d/32.png) [@hemertje](https://dietpi.com/forum/u/hemertje)
#### Post date: [26 February 2022 13:26 UTC](https://dietpi.com/forum/t/nextcloud-lighttpd-setup-help-needed/6160/31 "2022-02-26T13:26:39Z")

</div>

> [@](#):
>
> > [@](#):
> >
> > > hemertje — Today at 1:36 PM  
> > > Hi Mr Blue \> 😉 \> can Heimdall run without any proxy. Is it supporting sub path ootb directly on the web server?
> 
> > Blue\_Yoshi2015 — Today at 1:59 PM  
> > I’m not sure. I would highly recommend a reverse proxy for web apps like sonarr, radarr, etc. It isn’t exactly secure to host them without.

> Blue\_Yoshi2015 — Today at 2:24 PM  
> Although, you could probably use Heimdall without it, using the full address and port "\> [http://server.com:0000/](http://server.com:0000/)\> "

---

<div class="post-metadata">

### Author: ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)
#### Post date: [27 February 2022 12:45 UTC](https://dietpi.com/forum/t/nextcloud-lighttpd-setup-help-needed/6160/32 "2022-02-27T12:45:41Z")

</div>

looks like you are running in a circle with the guys from Heimdall 🙂

I mean in your case it might be the easiest to run Heimdall indeed inside Docker to avoid to many conflicts with DietPi setup for lighttpd.

[Previous page](https://dietpi.com/forum/t/nextcloud-lighttpd-setup-help-needed/6160.md?page=1)
