this post was submitted on 15 Mar 2026
11 points (92.3% liked)

Selfhosted

56958 readers
1540 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

So im sorry if this is the Wrong Sub more or less tho i did wanna ask if maybe one of you also selfhosts stuff as i am particulary having Issues with iocane ^^"
Mostly in the sense of that while Installation went succesful it did give me Issues regarding being unable to reach my Website which i selfhost via Caddy :(
Gave me an Error 421 if i remember correctly and i feel very stupid and embarassed that i cant solve it on my own as it is quite annoying >.<

Looks like there’s a problem with this site
https://retro-hax.net/ sent back an error.
Error code: 421 Misdirected Request
Check to make sure you’ve typed the website address correctly.

My Caddyfile is quite Basic tho as it looks like this with iocane being outcommented right now due to the 421 Bug :P

user@retro-hax:/etc/caddy$ cat Website.caddy
retro-hax.net {
  #@read method GET HEAD
  #reverse_proxy @read 127.0.0.1:42069 {
  #  @fallback status 421
  #  handle_response @fallback
  #}

  root * /var/www/html/Website
  file_server {
    index  Home.html
  }
}

and yes i did open up Port 42069 on my Router to make sure it wasnt a Porting Issue X_X

you are viewing a single comment's thread
view the rest of the comments
[–] Dran_Arcana@lemmy.world 2 points 1 day ago* (last edited 1 day ago) (3 children)

If caddy is acting as a proxy for anything, you should not need to forward that port externally. Local host firewalls allowing traffic on your local network is sufficient.

Depending on your physical host layout you may be looking at an issue with nat reflection.

You have not given us enough about your topology to assist in troubleshooting.

[–] RetroHax@feddit.org 1 points 1 day ago* (last edited 1 day ago) (1 children)

Well for me my Physical Host Layout how do you mean? O.o
Like i just use Caddy as my Web Server running on Port 80 and 443 which are open physically on my Router >.>
and i dont think i use a Proxy? >.>
I infact dont even use a Firewall tho i probably should set that up sometimes XD

[–] CompactFlax@discuss.tchncs.de 2 points 1 day ago* (last edited 1 day ago) (1 children)

Caddy is a proxy

Your router is almost certainly also a firewall.

The point of the reverse proxy, caddy, is to enable hosting on 443 instead of 42069 (and other stuff). Don’t open that to the public Internet.

Caddy can’t reach your web server (or at least, get expected response from), iocane, so it’s throwing up 421.

[–] RetroHax@feddit.org 1 points 1 day ago

well without iocane https://retro-hax.net/ can be accessed but just if i do uncom,ment the iocane stuff then i just get this 421 error But iocane is running via the systemd system and started so i dont understand why it doesnt work easily >.>

load more comments (1 replies)