• 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.

Issue Invalid nginx configuration: nginx: [emerg] invalid number of arguments in "add_header"

I think that this could be an issue with the Nginx version. One possible solution could be to enclose value and parameters in single quotes and to omit other single quotes inside the parameter string. Example:
Code:
add_header 'Content-Security-Policy' 'default-src self unsafe-inline *.akamai.net *.doubleclick.net [... add more as required ...]; font-src self fonts.googleapis.com fonts.gstatic.com';
 
Last edited:
Back
Top