Skip to content
Back

Clean 1.9.0 install, trying to access Appwrite from another PC and get 401 general_access_forbidden

  • 0
  • 5
  • Self Hosted
OldAdster
7 Apr, 2026, 22:02

I've been using Appwrite cloud for several months now, it's great and I love it. Doing some local testing so I setup a new Docker image on a Mini PC. Install failed a few times, I kept restarting the install and eventually it completed. I created my account, logged in and created my first project.

Then I tried to access that instance from my main computer. I opened port 80 and 443 through the windows firewall, but when trying to connect I get this error: Error 401 Router protection does not allow accessing Appwrite over this domain. Please add it as custom domain to your project or disable _APP_OPTIONS_ROUTER_PROTECTION environment variable. general_access_forbidden

In my .env file, _APP_OPTIONS_ROUTER_PROTECTION is already disabled.

TL;DR
Clean 1.9.0 Appwrite installation giving 401 general_access_forbidden error when accessed from another PC on the same network. Solution: Add your local IP to the _APP_DOMAIN_SITES env var.
π”Έπ•π•¨π•’π•§π•–πŸ˜πŸŸ ✨
7 Apr, 2026, 22:27

What did you type in the env?

π”Έπ•π•¨π•’π•§π•–πŸ˜πŸŸ ✨
7 Apr, 2026, 22:29

It needs to be written disabled and check if it’s saving the env. You should after changing it restart the dockers by

π”Έπ•π•¨π•’π•§π•–πŸ˜πŸŸ ✨
7 Apr, 2026, 22:29

docker compose down && docker compose up -d

OldAdster
7 Apr, 2026, 22:46

In the .env it's listed as: _APP_OPTIONS_ROUTER_PROTECTION="disabled"

I just tried "docker compose up -d" to refresh the container, but the .env was showind disabled from the beginning. I will try the down and up command now to see if it fixes it...

OldAdster
7 Apr, 2026, 22:50

Refreshed the docker with "docker compose down && docker compose up -d" and still getting the 401 error.

8 Apr, 2026, 14:15

In the .env it's listed as: _APP_OPTIONS_ROUTER_PROTECTION="disabled"

I just tried "docker compose up -d" to refresh the container, but the .env was showind disabled from the beginning. I will try the down and up command now to see if it fixes it... Refreshed the docker with "docker compose down && docker compose up -d" and still getting the 401 error.

8 Apr, 2026, 17:02

what are your domain env vars?

8 Apr, 2026, 18:02

They are the default env vars on a fresh install, I didn't modify any of them. Should I? _APP_DOMAIN="localhost" _APP_CUSTOM_DOMAIN_DENY_LIST="example.com,test.com,app.example.com" _APP_DOMAIN_FUNCTIONS="functions.localhost" _APP_DOMAIN_SITES="sites.localhost" _APP_DOMAIN_TARGET="localhost" _APP_DOMAIN_TARGET_CNAME="localhost" _APP_DOMAIN_TARGET_AAAA="::1" _APP_DOMAIN_TARGET_A="127.0.0.1" _APP_DOMAIN_TARGET_CAA=

8 Apr, 2026, 18:27

and how are you accessing your instance?

8 Apr, 2026, 22:45

Its installed on a Windows 11 Home Mini-PC with Docker (with nothing else really installed on that PC) and I"m trying to access it with my Mac development machine that has Antigravity, Cursor and Kiro on it. Both are on the same local network and I was trying to access it via it's local IP address on port 80.

9 Apr, 2026, 00:30

Something of note that I just discovered. On the Mini PC with the Appwrite Docker, I can log into the console by opening a browser and typing "localhost" however I get the 401 error if I try "127.0.0.1" instead of localhost.

10 Apr, 2026, 10:55

I am experiencing the same issue and haven’t been able to find a solution yet.

10 Apr, 2026, 11:59

My reverse proxy was not forwarding the correct host headers properly, now the issue is solved, thanks anyways.

11 Apr, 2026, 13:01

<@310464271068823564> I was getting the same error. You have to add your local IP to the _APP_DOMAIN_SITES env var, which should fix the issue

11 Apr, 2026, 19:50

Thanks a ton. This fixed the issue for me as well in my local dev env. I'm not using the appwrite sites atm so basically that var should not affect how my local deployment runs?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more