• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • 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.

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