Is Apache needed for anything in wordpress?

Most wordpress hosts seem to use apache with nginx as a reverse proxy. Is there any reason they are doing this rather than just running nginx and php-fpm?

I am wondering if it it due to .htaccess file or possibly some apache mods used by popular wordpress plugins maybe?

  • Rupok

    Hi Mike

    Hope you had a wonderful day.

    Is there any reason they are doing this rather than just running nginx and php-fpm?

    Basically nginx and Apache reverse proxy is a very powerful combination if configured properly. In that state, when a request comes to server, nginx first serves all static data, and at the same time, sends all dynamic requests to Apache at the backend. So both process are running at the same time, it reduces the queue, serves requests faster, no one gets too much load and lots of other facilities. So I personally prefer using reverse proxy rather than using nginx with php-fpm.

    You can re-write all your .htaccess rules for nginx, but the process is really complicated and nginx documentation is not as rich as apache till date. So obviously this is an advantage.

    Please let us know if you have any further confusion. We will be glad to help.

    Have a nice day. Cheers!
    Rupok

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.