• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved CLI: set multiple (multiline?) nginx-cache-cookies

TimRear

New Pleskian
Server operating system version
Ubuntu 18.04
Plesk version and microupdate number
18.0.48
Hi Pleskians,

i need to change some nginx settings to a couple of sites but i cant find a way to add multiple values to nginx-cache-cookies using cli

like:
Code:
plesk bin subscription --update-web-server-settings test.com -nginx-cache-cookies _ga\n_gat

Is there a need to add multiple values as multiline or is it possible to use another character?

Thank you so much!
 
Create file with content:

_ga
_gat


and run the command as:

# plesk bin subscription --update-web-server-settings test.com -nginx-cache-cookies "$(cat file)"
 
Back
Top