Hello All,
In Webuzo with ngnix you can enable Gzip compression and Leverage browser caching for particular domain by adding extra configuration file of domain. You will need to create configuration files like gzip.conf and leverage.conf and add below code.
Gzip compression code:Quote# Enable Gzip
gzip on;
gzip_http_version 1.0;
gzip_comp_level 2;
gzip_min_length 1100;
gzip_buffers 4 8k;
gzip_proxied any;
gzip_types
# text/html is always compressed by HttpGzipModule
text/css
text/javascript
text/xml
text/plain
text/x-component
application/javascript
application/json
application/xml
application/rss+xml
font/truetype
font/opentype
application/vnd.ms-fontobject
image/svg+xml;
gzip_static on;
gzip_proxied expired no-cache no-store private auth;
gzip_disable "MSIE [1-6]\.";
gzip_vary on;
Leverage browser caching:Quote
location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ {
expires 365d;
}
After that Follow below steps:
1: Login to Webuzo panel and go to Domain >> Extra Configuration
2: Select the Domain for which you want to ADD Extra Configuration File.
3: Select the Webserver for which you want to ADD Extra Configuration File.
4: Populate the input field with the location of your configuration file.
5: Click on Add record button.
6: Repeat above steps for other configuration file.
7: Then restart the nginx service on the server.
Ref: https://www.webuzo.com/docs/endusers/add-extra-configuration-file/ (https://www.webuzo.com/docs/endusers/add-extra-configuration-file/)
That's it :)