• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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