• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.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