I have a an issue that I’m not sure how to go about fixing. I am getting 404 on my local dev not white screen but a simple 404 page not found
. But I can’t find where the issue is. Full disclosure server admin is not my strong area.
I think I set up debug logging correctly for nginx:
in group_vars/development/main.yml
I added nginx_conf: nginx-includes/nginx.conf.child
in trellis/niginx-includes/nginx/conf.child
I have
{% extends 'roles/nginx/templates/nginx.conf.j2' %}
{% block error_log %}
error_log {{ nginx_logs_root }}/error.log debug;
{% endblock %}
If I go to my main url http://cms.pleinairarchive.test/
I get the aforementioned 404 page not found
.
Nothing in the logs at /srv/www/cms.pleainairarchive.com/logs/error.log
or at /var/log/nginx/error.log
The thing that seemed to start this was I imported the db down from production. I’ve checked wp-options
table and the siteurl
and home
are pointed at http://cms.pleinairarchive.test/wp
. I did a search and replace before I imported. If this sounds familiar some guidance would be great or better strategies at trying to debug this.