Skip to content
Back

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

  • 0
  • 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
Developers setting up a clean 1.9.0 Appwrite install are encountering a 401 error when trying to access it from another PC. The issue seems to be related to the _APP_OPTIONS_ROUTER_PROTECTION variable in the .env file. Despite it being set as disabled, the error persists. A solution provided by another developer is to ensure the variable is correctly spelled as "disabled" and to check if the change is saving properly. Restarting the Docker containers after making this adjustment may resolve the 401 error.
π”Έπ•π•¨π•’π•§π•–πŸ˜πŸŸ ✨
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.

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