Standing up a new server in a load balancing pool. All links to posts broken.
-
I have a problem where links to posts from the front page of my WP site are broken and I need help fixing this issue.
I have a WP site hosted on AWS that consists of two Ubuntu EC2 servers (running Apache2 / PHP 7.4) behind a load balancer that are using shared NFS storage for .php files, S3 for image stores and elasticache for memcached caching. I am migrating the Ubuntu servers to newer graviton servers and PHP 8.1
The problem is that I deleted the template that creates the Ubuntu Apache servers so I’m having to build a new server instance from scratch and I’ve apparently missed a configuration step somewhere because when I mount the NFS share to the new server and browse to it, links are broken. PHP works, caching works. Everything seems to work, except the links on the front page are broken.
I assume it’s a redirect or a rewrite that are broken, but all of the WP installation files, as well as the ,htaccess files are shared between the three webservers. I don’t know where else to look.
Help, please!
The blog I need help with is: (visible only to logged in users)
-
I figured it out- I’d forgotten to enable mod_rewrite on the new server:
sudo a2enmod rewrite
- The topic ‘Standing up a new server in a load balancing pool. All links to posts broken.’ is closed to new replies.