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

    https://survey.webpros.com/

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