Back

[SOLVED] 403 error when i setup Google Auth services

  • 0
  • Users
  • Accounts
  • Web
SpencerSama
25 Mar, 2023, 12:30

πŸ‘†

TL;DR
Title: [SOLVED] 403 error when setting up Google Auth services Solution: The issue was due to ModSecurity running on the domain names. Deactivating ModSecurity resolved the problem. Note: Using HTTPS and proxying to Appwrite via HTTPS is recommended. Consider checking out the tutorial from DigitalOcean on using Apache HTTP Server as a reverse proxy using the mod_proxy extension for Ubuntu 20.04. Switching to Nginx is also suggested as it is easier and cleaner to set up. Make sure to enable mod_proxy if using Apache as the reverse proxy.
Drake
25 Mar, 2023, 15:59

any reason why you're using apache as your reverse proxy?

SpencerSama
25 Mar, 2023, 16:02

no

SpencerSama
25 Mar, 2023, 16:02

If you have any suggestions it will help me a lot

SpencerSama
25 Mar, 2023, 16:02

thanks

safwan
25 Mar, 2023, 16:04

i can see that you haven't enabled mod_proxy

safwan
25 Mar, 2023, 16:04

maybe I didn't spot it, but havw you enabled it?

safwan
25 Mar, 2023, 16:05

i personally use nginx. I've used apache amd nginx before, and nginx seems much easier and cleaner to set up

SpencerSama
25 Mar, 2023, 16:05

Should I add it? If so, a hand would be really appreciated πŸ™

safwan
25 Mar, 2023, 16:06

i can maybe find an online article to help you set it up. I'm away from my computer, so can't exactly be of help any other way right now lol

safwan
25 Mar, 2023, 16:07

These tutorials from digitalocean have always helped me. check it out

SpencerSama
25 Mar, 2023, 16:08

Currently in my server there are several projects running and it would be complicated for me to switch to Ngnix πŸ˜…

safwan
25 Mar, 2023, 16:08

that's fair! just because i prefer nginx doesn't mean you should use it as well!

SpencerSama
25 Mar, 2023, 16:09

Thank you very much for your help

Drake
25 Mar, 2023, 16:20

i highly suggest using HTTPS and proxying to appwrite via HTTPS. anyways...maybe this will help you: https://github.com/appwrite/appwrite/discussions/4056

SpencerSama
25 Mar, 2023, 16:22

Just i copy and paste and i edit the virtual

SpencerSama
25 Mar, 2023, 16:22

Host?

Drake
25 Mar, 2023, 16:25

no you should probably read through it πŸ˜…

SpencerSama
25 Mar, 2023, 16:26

Okay πŸ˜…

SpencerSama
25 Mar, 2023, 19:28

I have the same problem

SpencerSama
1 Apr, 2023, 13:40

I finally solved my problem and it was linked to my host that was running ModSecurity on my domain names πŸ˜… . So I just deactivated ModSecurity and everything is fine now. 🀩

SpencerSama
1 Apr, 2023, 13:41

Thank you for your answers πŸ™

Drake
1 Apr, 2023, 14:45

Thanks for coming back and letting us know what the problem was! I'll keep an eye out for ModSecurity in the future

Drake
1 Apr, 2023, 14:45

[SOLVED] 403 error when i setup Google Auth services

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