Simple Nginx Configuration
Link Configuration of Nginx and MySQL Databases
One service configuration in http: listening port, server name, disabling lua_code_cache (debugging Nginx with different restarts), root directory setting, default page, and session key
2. Send login information from html to Nginx, and Nginx reads MySQL and judges
1 cookies go to the logon page without logon information
2 login.html: Submitted/logincheck to the http server <Strong? Http: www.bkjia.com kf ware vc "target =" _ blank "class =" keylink "> VcD4KPHA + pgltzybzcm9 "http://www.2cto.com/uploadfile/Collfiles/20140425/2014042509102321.jpg" alt = "\">
3/logincheck: checklong. Lua (registered cookies are only valid for the/private directory)
4. checklogin. lua sends/login_check to the server (why do you want to send it separately? you can send it to other servers to solve the high concurrency problem)
5. After Successful Logon, go to the private page and add cookies (this can be achieved. Close the page and re-enter the/private page. No more logon pages will be transferred to the personal page)
6. Delete cookies after logging out.
Effect 3
Login
Enter