• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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