• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

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