Both servers are listening to the same port. You have Nginx set to listen to 80 and nothing is set for Apache unless it’s in your ports.conf.
Your also proxy passing to Apache port 80 in your Nginx conf.
In the Nginx conf change
proxy_pass http://127.0.0.1:80;
to
proxy_pass http://127.0.0.1:9000;
change listen XXX.XXX.XXX.XXX:80;
to listen 80;
In your Vhosts
add
NameVirtualHost *:9000
Listen 9000
Above the <VirtualHost>
tag or in the ports.conf file (If you have other vhost that don’t use Nginx add it to the top of your vhost. Change virtual host to look like this:
<VirtualHost *9000>
Related Posts:
- WordPress Theme’s 404.php not found, server defaults to Apache’s own 404 page
- Nginx with WordPress not showing template 404 for certain file types
- Intermittently missing pages and posts in WordPress
- WordPress takes too long to show 404 error on images (on LEMP stack)
- WordPress refuses to read the .htaccess file and gives a 404 for sub-pages
- Page not found if mod_cache_disk is active
- How can stop redirects 404 in wordpress
- Problem with a wordpress admin system. and website
- 404 Errors on Every Page (Including Homepage) After Migrating From IIS to Apache
- 404 Not Found nginx on wp-admin
- How can I use an .htaccess file in Nginx?
- Changing permalinks gives me 404 errors on nginx
- WordPress Migration: Getting 404 Errors: Only Home Page works
- WordPress redirecting connections on port 8080 to 80
- Optimize apache for WP use
- Using WordPress with Apache behind an nginx reverse proxy
- 404 when fetching image from wp-content/uploads/
- REST API: No route was found matching the URL and request method
- WordPress REST API 404
- Changing Site Address (URL) causes 404
- Homepage loads but all permalinks are 404 when using nginx & PHP-FPM
- In wordpress I am manipulation 404 response. I want to give the response before 404 error is given to google
- page not found in Chrome, but found in Firefox
- Why does my WordPress show a 404 message for 403 forbidden directories?
- Moved to new server, all pages work EXCEPT home page (page not found)
- High CPU usage on 404 errors
- How to fix “failed to set referrer policy: The value ‘ ‘ is not one of…”?
- Unable to modify(update) posts – Page not found
- 404 to 301 – Fixing old links
- How do I go about fixing this apparently messed up upgrade?
- WordPress Stats keeps showing non-existent post as a top post?
- Form in WordPress : 404
- Non-existent page returns code 200
- WP is redirecting instead of going to 404
- post parameter ‘name’ 404 error
- show shop instead of 404 page for missing products
- How do I show the WP admin error page?
- WordPress Post – On Post – 404 Page Not Found
- How to find out which function is causing a 404
- Prevent WordPress from interpreting a subfolder?
- How can I send an email in my plugin?
- All pages after level 1 showing 404 after WordPress migration plugin – how to fix?
- WP_DEBUG must be on, otherwise edit post or page will show 404 error
- WordPress post-name permalink redirects to site.com
- Virtual robots.txt missing
- Moved from Blogger to WordPress, however I can only see the Google 404 page
- Unable to get /%postname%/ permalinks working, 404 on all links
- Incorrect url for sharing blog on linkedin [closed]
- Catch 404 errors in nested installations
- Page not found (404 Error) even if the page exists?
- How to recover WordPress Adress(URL)
- My wordpress website does not show 404 page and results in http 500 error
- URL Change – Check if Post Exists Before 404
- Sub Domain’s Pages return 404
- Google 404 Errors
- Why aren’t links clickable on my 404 error page? [closed]
- full blog working fine but post-new.php throwing 404
- Blank TinyMCE and 404 errors on assets
- How do I redirect a permalink for a Draft post to a custom 404 page?
- No 404 page available
- New install of wordpress, my url goes to index of/
- how to set up wp in folder within static website?
- How can I block with a child theme certain pages?
- If I use Apache & ngnix together will I have fewer problems?
- Page not found when trying to link to files in child theme directory
- Can’t view post, goes to 404 page. Please help
- Custom Post Types cause 404 for pages? [closed]
- wordpress sitemap subtypes returns 404 with correct data for pages bigger than 1
- Page not found after migration to localhost. I already updated the sql links and the permalinks. Wp-admin page works perfectly
- 404 error on new pages but only for non logged in users?
- Unable to change 404
- How to make wordpress page site.com/content as location for main site.com that is worked on nuxt.js+node?
- How to fix mime-type and (after disabling nosniff) 404 errors for css and js files in staging site
- Redirect search.php to 404.php
- 301 Redirect Loop www to non-www – Nginx + Apache2
- WordPress as backend for SPA – problem of 404 page for custom routing
- 404s after changing site url in settings
- Page 404 Error on Localhost
- wp-admin throws 404 when accessed from some IPs
- Why my post showing not found in admin side when i click on count of category?
- “Headers already sent” error triggered in “parse_query” action
- Manage 404 page over wordpress backend?
- All files being pulled from wp-content returning 404 error
- What could be the reason that i can’t access to the other pages of my localhost wordpress website except the homepage?
- Copying live site that is using older version of WP to localhost
- How to solve 404 permalink errors on nginx server
- Intermittent Rewrite Problems
- Getting 404 pages when upgrading from 3.5.2 to 4.1.1
- My website not showing 404 error!
- Why are 404 errors redirecting to my homepage and not my custom 404.php?
- WordPress not showing custom 404 page for not found images, zip files
- Override private status – Enable users to read private posts
- Posting to most pages throws 404
- $_POST[‘message’] gives a 404 [duplicate]
- %20 in URL in archive page shows error 404 on page [closed]
- Author page not found
- Getting 404 when static files have “?ver=x.y” suffix
- Serve static files via a subdomain on a wordpress
- How to include a php file in 404.php file?
- How to navigate to a non-wordpress page in a wordpress install without getting a 404 error?