WP behind nginx reverse proxy
-
I tried to install latest version of wordpress as of 03. 04. 2023. on Ubuntu 22.04.
I put another nginx module in front for reverse proxy as there’s multiple devices that need port 80 and 443 incoming connection.
I successfully accessed installation page but then logging into admin page shows ‘Sorry you are not allowed to access this page’ error.
php wp-cli user list
shows my email as administrator.I’m pretty sure it’s not a plugin issue as I didn’t have chance to install any and it’s less likely nginx issue since I can access first default post without problem.
I tried again after
drop database wordpress;
from mysql but still the same.I tried everything I could come up and everything I could find on the internet but still of no use. Any advice will be appreciated. below is my github gist of my setup
https://gist.github.com/Canorus/6f67f326100de6afb4e071c232af3941
- The topic ‘WP behind nginx reverse proxy’ is closed to new replies.