Can you post your nginx config please?
Cromulent wrote:
Why don't you ditch Apache completely? I use Nginx for everything (two Wordpress sites and a Django site). It seems silly to have two capable HTTP servers on the same machine. Ditch Apache and just stick with Nginx for everything.
It's not silly. There are good reasons to use both Nginx and Apache on the same server.
1. Nginx can handle way more concurrent connections than Apache so it makes an awesome proxy in front of an apache server or even multiple apache servers.
2. Nginx excels at serving static content while Apache excels at serving dynamic content like php or python. If they both serve what they're best at instead of having one serve static and dynamic content, you'll end up serving your web pages faster.
3. Apache has way more modules, especially authentication modules than Nginx. So for example, if need you some fancy authentication method, there's most likely an existing Apache module for it.
Don't get me wrong though, I LOVE Nginx and it's my go to web server but don't be so quick at ditching Apache.