We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Which Nginx template for PHP scripts?
Which Nginx template for PHP scripts?
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/Благодарю
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/Благодарю
Re: Which Nginx template for PHP scripts?
Yeah, why not?
Here is code for caching template:
Cache for all, but this is exceptions. Non-cached content get users with cookies
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;