Hello everyone
i am using dietpi on my RPI4 along with unbound and redis cache.
It is working great and i have had no issues with the setup.
I have also enabled DOH and Dot using domain name and setiing up ddns for regular updation of ip with the domain.
using this setup i am able to use 11.yy. io as my DOT address in android and have not been facing any issue. where 11 is my device name and yy.io is domain. The domain is already ssl enabled
Now i want to host a small website on this domain along with adguard. like yy.io/new. So for this i have installed lighttpd and this setup works on local network like 19.x.x.x/new but with domain it doesnt work. I changed the port of lighttpd to 8088 but still getting error
You need to setup Lighttpd for HTTPS. What do you mean with the domain being “ssl enabled”? You have a TLS certificate for it? A Let’s Encrypt certificate?
Does something else run on ports 80/443? You mean upstream DoT/DoH or downstream DoT/DoH (for DNS clients within you local network)? The latter would use/block ports 80/443 which makes obtaining a Let’s Encrypt certificate difficult at least.
I note a distinct lack of the words “certificate authority” and/or “Let’s Encrypt” in your text, OP; if you want to run your own domain this way, you’d either to create your own Certificate with Let’s Encrypt (as a quick reminder, here’s the Dietpi documentation for it : System Security Software Options - DietPi.com Docs ) or you’d find a provider that offers free SSL certificates (which would likely end in you finding Let’s Encrypt’s website).
Now, adding an SSL cert isn’t necessarily the most straight forward process, but there are plenty of guides available, and it can all be done for free, you just have to search a bit.
Do stay away from Google’s AI results on the process; their AI gave me some… well, let’s be charitable and say it gave me some rather curious suggestions.
a small comment from my side, if the web server is directly accessible from the internet via port 80/443, you can also use dietpi-letsencrypt to create valid certificates Software Installation - DietPi.com Docs