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.
ngnix gzip
ngnix gzip
хотел включить для сайта пользователя gzip
прописал новую директиву http и gzip-параметры.
при перезапуске nginx выдает что там эта директива запрещена. Куда ее прописать чтобы включить для отдельного сайта/юзера куда прописать если я хочу включить на все сайты?
предлагаю настройки сжатия вынести в настройки домена.
прописал новую директиву http и gzip-параметры.
при перезапуске nginx выдает что там эта директива запрещена. Куда ее прописать чтобы включить для отдельного сайта/юзера куда прописать если я хочу включить на все сайты?
предлагаю настройки сжатия вынести в настройки домена.
Re: ngnix gzip
По умолчанию gzip сжатие в главном конфиге nginx /etc/nginx/nginx.conf - включено
Code: Select all
# Compression
gzip on;
gzip_comp_level 9;
gzip_min_length 512;
gzip_buffers 8 64k;
gzip_types text/plain text/css text/javascript
application/x-javascript;
gzip_proxied any;
-
- Posts: 76
- Joined: Tue Feb 19, 2013 12:40 pm
Re: ngnix gzip
http://developers.google.com/speed/pagespeed/ не видит включенный gzip. С чем это может быть связанно?
Re: ngnix gzip
Replace current the gzip_types (In nginx.conf) with this:
and then restart nginx and run PageSpeed again. It works for me.
In case you're using Wordpress and notice note odd characters in your website, try to turn off the compression feature in cache plugin, such as w3 total cache, hypercache, etc.
Code: Select all
text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml application/x-font-ttf font/opentype;
In case you're using Wordpress and notice note odd characters in your website, try to turn off the compression feature in cache plugin, such as w3 total cache, hypercache, etc.
Re: ngnix gzip
Это действительно работает!rigs wrote:Replace current the gzip_types (In nginx.conf) with this:
Code: Select all
text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml application/x-font-ttf font/opentype;
Хорошо бы разработчикам это как то внедрить :-)
Re: ngnix gzip
https://bugs.vestacp.com/AmiGator wrote:Это действительно работает!rigs wrote:Replace current the gzip_types (In nginx.conf) with this:
Code: Select all
text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml application/x-font-ttf font/opentype;
Хорошо бы разработчикам это как то внедрить :-)
Re: ngnix gzip
Спасибо, работает!
Можете добавить в следующий релиз.
Можете добавить в следующий релиз.