• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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