Title: andreiguru's Replies | WordPress.org

---

# andreiguru

  [  ](https://wordpress.org/support/users/andreiguru/)

 *   [Profile](https://wordpress.org/support/users/andreiguru/)
 *   [Topics Started](https://wordpress.org/support/users/andreiguru/topics/)
 *   [Replies Created](https://wordpress.org/support/users/andreiguru/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/andreiguru/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/andreiguru/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/andreiguru/engagements/)
 *   [Favorites](https://wordpress.org/support/users/andreiguru/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[W3 Total Cache] – Nginx looses 30 Google page score](https://wordpress.org/support/topic/w3-total-cache-nginx-looses-30-google-page-score/)
 *  [andreiguru](https://wordpress.org/support/users/andreiguru/)
 * (@andreiguru)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/w3-total-cache-nginx-looses-30-google-page-score/#post-3142809)
 * The reason you’re having issues is because Apache rewrites and other directives
   used by W3TC do not apply in Nginx. Therefore, you will have to manually edit
   the Nginx vhost.
 * For WordPress, you’re going to want to use the following in server {}:
 *     ```
       if ($host ~* ^www\.(.*)) {
           set $host_without_www $1;
           rewrite ^/(.*)$ $scheme://$host_without_www/$1 permanent;
       }
       if (!-e $request_filename) {
           rewrite ^(.+)$ /index.php?q=$1 last;
       }
       location ~* \.(js|css|png|jpg|jpeg|gif|ico)(\?ver=[0-9.]+)?$ {
           expires 1y;
       }
       ```
   
 * Also, for PHP, I strongly suggest using PHP-FPM over FastCGI. Under heavy loads,
   FastCGI daemon will crash repeatedly, while FPM will take a beating 🙂
 * Heavy loads tested = 500 concurrent connections, 100k requests.

Viewing 1 replies (of 1 total)