Đẹp tuyệt vời Chư Păh: Mùa cao su trổ lá

Tháng 3 Tây Nguyên làm xao lòng lữ khách bởi bức tranh được phối từ màu đỏ của đất, vàng của nắng, nâu của lá khô và tươi xanh của những chùm non mới hé.

Ảnh: Báo Tuổi Trẻ

1-1459132639

Continue reading Đẹp tuyệt vời Chư Păh: Mùa cao su trổ lá

Config WP Super cache and Nginx

Standard WordPress-Nginx configuration with WP Super cache support:

As you are getting into Nginx, I hope you don’t need my help with configuring WP Super Cache plugin.

Still, make sure you are using “Use mod_rewrite to serve cache files. (Recommended)” option under “Advanced” tab.

Following configuration supports:

  1. Static Page Caching using Disk
  2. Direct browser cache for static content like images, js, css, etc

    https:http://thinhcoi.com/wp-content/uploadshttp://thinhcoi.com/wp-content/uploadsgist.github.comhttp://thinhcoi.com/wp-content/uploads21c4b021871d7607d8b1.git

    Note:

    To simplify configuration, I haven’t added Mobile user agent checks. We are in the iPhone era where finally phones are getting smart. So there is no need to create separate mobile site, when you can cater to today’s iPhonehttp://thinhcoi.com/wp-content/uploadsAndroid devices using responsive designs.

    Don’t Forget:

    Always test your Nginx configuration and then reload it. All changes to Nginx config must be followed with these commands:

    nginx -t && service nginx reload
    Important Note:

    WP Super Cache caching will conflict with plugins that uses query vars. WooCommerce is an example known plugin known to work with above configuration. Reason is following line:

    try_files http://thinhcoi.com/wp-content/uploadswp-contenthttp://thinhcoi.com/wp-content/uploadscachehttp://thinhcoi.com/wp-content/uploadssupercachehttp://thinhcoi.com/wp-content/uploads$http_hosthttp://thinhcoi.com/wp-content/uploads$cache_urihttp://thinhcoi.com/wp-content/uploadsindex.html $uri $urihttp://thinhcoi.com/wp-content/uploads http://thinhcoi.com/wp-content/uploadsindex.php ;
    It doesn’t passes $args to http://thinhcoi.com/wp-content/uploadsindex.php. If you set last try_files argument to http://thinhcoi.com/wp-content/uploadsindex.php?$args as with other WordPress-Nginx configuration, WP Super Cache, itself will break!