António P. P. Almeida Wrote: ------------------------------------------------------- > There's a simpler and more efficient way to do it. > Instead of > detecting the mobile browser, do the > complementary, i.e. detect the > desktop browser: > > https://gist.github.com/1326701 > > --- appa I'd like to warn you about that one, it detects bot's like Googlby AndriesLouw - Nginx Mailing List - English
If you want it mod_rewrite style (so no 302 Temporary Redirect header): location ^/wp-content/themes/mytheme/assets/css/ { rewrite custom.css custom.php; }by AndriesLouw - Nginx Mailing List - English
If you've logging enabled in some sort, you could use a Visual Log Analyzer, I know some of them work for Apache-style logs, but it requires the overhead of having logging enabled for your webserver. Such log-analysers don't need many resources, as they don't require any interaction with requests served by nginx, they just read the logs nginx produces every x seconds.by AndriesLouw - Nginx Mailing List - English
It is perfectly possible to do so with nginx server level configuration, I wrote a blogpost about it on my blog: http://blog.andrieslouw.nl/2012/01/serving-mobile-users-with-nginx.html I'm not exactly sure if it follows all the best-practices, but it seems to work quite well in my enviroment. -- Andries Louw Wolthuizenby AndriesLouw - Nginx Mailing List - English