Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion
  • Search

Which Nginx template for PHP scripts?

General questions about VestaCP
Post Reply
  • Print view
Advanced search
2 posts • Page 1 of 1
blackside
Posts: 4
Joined: Sat Jan 03, 2015 11:45 am

Which Nginx template for PHP scripts?
  • Quote

Post by blackside » Sat Jan 03, 2015 12:05 pm

Dear devs & community! First thank you for this great and fast panel!

I'm thinking, which Nginx template I should use for PHP scripts:
- Ajax script sending many mysql requests (/per user)
- API script that generates JSON for mobile app
- Wordpress with several plugins

Documentation says that "default" template is for static content — so should I use "caching" template for dynamic apps with big traffic?


Thank you/Благодарю
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Which Nginx template for PHP scripts?
  • Quote

Post by skurudo » Sat Jan 03, 2015 12:52 pm

Yeah, why not?

Here is code for caching template:

Code: Select all

       
        proxy_cache cache;
        proxy_cache_valid 15m;
        proxy_cache_valid 404 1m;
        proxy_no_cache $no_cache;
        proxy_cache_bypass $no_cache;
        proxy_cache_bypass $cookie_session $http_x_update;
Cache for all, but this is exceptions. Non-cached content get users with cookies
Top


Post Reply
  • Print view

2 posts • Page 1 of 1

Return to “General Discussion”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password