Well, I admit that it was my fault that I was careless on the weekend, but I didn't stop thinking completely. When I was in the drama, or the heart of the Nginx, the understanding of nginx in the process of the pot play further deepened.
Nevertheless, there is no way to write a summary, after all, it is too much food.
It is now possible to configure it as a static resource server, which should be more than enough for my project resources. Next is how to let Nginx and MySQL communication, based on this I seriously searched for a bit. Most of the Baidu is to tell me how to configure the "Linux+nginx+php+mysql", but I do not PHP ah, although it is the best language in the world. So in the struggle to find, finally emperor, let me found the Nginx_lua_module, is through the Nginx LUA module, can add LUA language in the configuration, to achieve the corresponding logic. With Lua, it is possible to communicate with MySQL.
Sure enough in my search, do have this information, but I can not understand. Because my LUA only knows some fur, although its foundation is only a little fur, but its transformation is really unpredictable, it takes a few days to study.
Now that you are able to act as a static resource server, you can test the first step first.
The No. 525 Day of work