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

How enable Nginx options for a domain via command line?

HoracioS

Regular Pleskian
Hello, I want to enable from command line the NGINX options like the following from GUI, but I´m in a wrong way. Any idea?

nginx settings

- Smart static files processing

- Serve static files directly by nginx (ac3 avi bmp bz2 css cue dat doc docx dts exe flv gif gz htm html ico img iso jpeg jpg js mkv mp3 mp4 mpeg mpg ogg pdf png ppt pptx qt rar rm swf tar tgz txt wav xls xlsx zip)


Best regards,
Horacio
 
You can manipulate the Nginx vhost template file by editing

Code:
/usr/local/psa/admin/conf/templates/default/domain/domainVirtualHost.php

Hope that helps!
 
You can manipulate the Nginx vhost template file by editing

Code:
/usr/local/psa/admin/conf/templates/default/domain/domainVirtualHost.php

Hope that helps!

Yes, but this is not for what I asked for.

I just need to use like this:

$ /usr/local/psa/bin/domain --update domainXX.com -nginx-transparent-mode false -nginx-serve-static true

But they aren´t work...
 
HoracioS,

I'm sure you need use command `plesk bin --update-web-server-settings domainXX.com ...` instead of `plesk bin --update domainXX.com ...`
 
Back
Top