How to turn on browser cache for Nginx for all domains?

Follow

Comments

4 comments

  • Avatar
    Harry Sbr
    sed -i 's/9location/location/g' /var/www/vhosts/system/*/conf/vhost_nginx.conf

    :<
  • Avatar
    Vitaly Zhidkov

    @Harry, thank you, article was updated

  • Avatar
    Данил Трубицын

    root@ih461789:/# chmod +x set_directive.pl && ./set_directive.pl
    -bash: ./set_directive.pl: /usr/bin/perl^M: bad interpreter: No such file or directory

  • Avatar
    Artyom Baranov

    @Данил,

    Спасибо! :) Я поправил статью, теперь ошибки не будет и скрипт отработает.

Please sign in to leave a comment.

Have more questions? Submit a request