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
- docker + wordpress + nginx = intermittent 404
- 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
- Setting 404 page in Nginx
- External page integrated into WordPress returns a 404 error
- get_the_ID() gives notice in 404 page
- How to open the 404 page in the Theme Customizer preview?
- Using WordPress with Apache behind an nginx reverse proxy
- Feed 404 Errors
- 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
- Detect 404 before headers are sent
- 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
- WordPress site displaying 404 for any page apart from index
- Non “WordPress” pages/code getting 404 error
- 404 error on all pages but homepage
- Where is the best part to hijack or catch a potential 404
- 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
- “Lost password” page triggers 404
- 404 to 301 – Fixing old links
- How do I bypass WordPress 404 handling?
- $error = 404 after caught add_rewrite_rule
- Permalinks keep reverting to 404 unless I re-save them
- How do I go about fixing this apparently messed up upgrade?
- WordPress Stats keeps showing non-existent post as a top post?
- WP Rest API not working
- What does do_action(‘admin_init’); does actually?
- Form in WordPress : 404
- Why is my Javascript console showing a 404 error for a file called “null” on a clean WordPress install?
- WordPress 404 on Subdomain
- Why Runtime service worker (runtime-service-worker.js) is being loaded, but can’t be found?
- Non-existent page returns code 200
- WP is redirecting instead of going to 404
- Conditional for 404 page not work
- post parameter ‘name’ 404 error
- W3 Total Cache – Converting Apache rewrites to Nginx [closed]
- Getting a 404 in Debugger for example.com/wp-admin/Array?
- Restrict uploaded files into a custom folder to logged in users by htaccess: looking for Nginx – not only Apache – solution
- oEmbed 404 errors when trying to use embed block
- show shop instead of 404 page for missing products
- Intercept 404 and try to serve another content if exists?
- 404 after moving localhost wp to server
- Intermittent 404 errors, rewrite rules, and BBPress
- 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
- Template redirect template loaded, but the header 404
- Prevent WordPress from interpreting a subfolder?
- Nginx Rewrite Rule:: index.html added to every permalink
- Getting 404s on New Pages
- How can I send an email in my plugin?
- All pages after level 1 showing 404 after WordPress migration plugin – how to fix?
- index2.php in root causing 404 error
- Why I get File Not Found (404 error) when the file is actual there?
- WP_DEBUG must be on, otherwise edit post or page will show 404 error
- WordPress post-name permalink redirects to site.com
- Page preview is shown, updating page gives 404 error
- Getting “404 page not found” error when i access to my Login page
- how to combine wordpress htaccess on my root domain + php on subfolder
- Virtual robots.txt missing
- Moved from Blogger to WordPress, however I can only see the Google 404 page
- Custom 404 page for dashboard
- Receiving 404 when uploading file larger than 10kb
- wp-tinymce.php 404
- WordPress.org support topics returning 404 [closed]
- Unable to get /%postname%/ permalinks working, 404 on all links
- Display child pages on parent page: 404 message overrules shortcode in page
- How can I prevent non-existing wordpress pages from getting redirected to home page
- Incorrect url for sharing blog on linkedin [closed]
- Catch 404 errors in nested installations
- Getting 404 error on my wp rewrite error
- WordPress 404 Page displaying on a sub directory that has it’s own 404 page
- redirect deleted / drafted pages
- 404 error on dynamic stylesheet creation
- Why do I have a weird rendering issue only on 404.php caused by wp_nav_menu?
- make wordpress log errors in apache log file
- How to fix: “The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.”
- Page not found (404 Error) even if the page exists?
- Recommendation for server config for WordPress Staging servers [closed]