Nginx in production

4,764 views
4,546 views

Published on

Published in: Technology
2 Comments
9 Likes
Statistics
Notes
No Downloads
Views
Total views
4,764
On SlideShare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
93
Comments
2
Likes
9
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Nginx in production

    1. 1. NginxIn production
    2. 2. Evolution• Started with Apache• Massive server load• Considered adding more servers• Needed a cheaper solution
    3. 3. Evolution v2• Changed to Lighttpd• Win!• .. but it loaded up again• Growing user base• Needed another solution
    4. 4. Nginx• New server• Fresh install• Lots of hype• Try Nginx, see the results
    5. 5. Result• Server load 26+• Reduced• Server load 0.3 (max)• 4 million+ views per day
    6. 6. Nginx• Learning curve for configs• But its simpler• Easier to read• More flexible• Less overhead
    7. 7. nginx.conf
    8. 8. common.conf
    9. 9. php.conf
    10. 10. cakephp.conf
    11. 11. Available / Enabled
    12. 12. sites-enabled/mysite.com
    13. 13. Nginx’s friend• PHP-FPM• Super Fast• Pool management• Simple and self-managing
    14. 14. CakePHP Ready• Nice simple configuration• Easy to deploy new sites• Separated rules for CakePHP
    15. 15. Plain old PHP too!• Separate PHP configuration• Just include php.conf into your site conf• Dead easy to setup new sites• Simple == awesome!

    ×