• 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!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

Resolved Allow enabling nginx cache on all existing domains on the Plesk server ?

mahmut ozdemir

Basic Pleskian
Hello

I suggest adding a feature that allows you to do the equivalent of what can be done in Plesk Obsidian 18.0.21 in Domains > example.com > Apache & Nginx settings > "Enable nginx caching" but for all the existing domains that are on the Plesk server at once.

Essentially, the feature suggestion is to "Enable nginx caching" but for all the domains on the server.

How to activate nginx FastCGI cache for all domains?

???
 
Just use command like:

# for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select name from domains"`; do /usr/local/psa/bin/subscription -u $i -nginx-cache-enabled true; done
 
Just use command like:

# for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select name from domains"`; do /usr/local/psa/bin/subscription -u $i -nginx-cache-enabled true; done



unfortunately not


[root@static ~]# for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select name from domains"`; do /usr/local/psa/bin/subscription -u $i -nginx-cache-enabled true; done
SUCCESS: Update of domain 'aureole.clothiesly.com' completed.
SUCCESS: Update of domain 'baile.clothiesly.com' completed.
SUCCESS: Update of domain 'baliegh.clothiesly.com' completed.
SUCCESS: Update of domain 'barbee.clothiesly.com' completed.
SUCCESS: Update of domain 'basbadi.com' completed.
SUCCESS: Update of domain 'boles.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'carmen.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'clot.clothiesly.com' completed.
SUCCESS: Update of domain 'clothiesly.com' completed.
SUCCESS: Update of domain 'daniela.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'dedec.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'dhors.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'downey.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'dozier.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'ellston.clothiesly.com' completed.
SUCCESS: Update of domain 'elric.clothiesly.com' completed.
SUCCESS: Update of domain 'elston.clothiesly.com' completed.
SUCCESS: Update of domain 'elsvorth.clothiesly.com' completed.
SUCCESS: Update of domain 'elvin.clothiesly.com' completed.
SUCCESS: Update of domain 'elvyn.clothiesly.com' completed.
SUCCESS: Update of domain 'emmanual.clothiesly.com' completed.
SUCCESS: Update of domain 'getz.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'jacki.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'jeren.clothiesly.com' completed.
SUCCESS: Update of domain 'laveta.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'malika.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'masmar.clothiesly.com' completed.
SUCCESS: Update of domain 'mast.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'mayola.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'mchel.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'petra.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'reanna.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'rebecca.clothiesly.com' completed.
SUCCESS: Update of domain 'redfun.clothiesly.com' completed.
SUCCESS: Update of domain 'ronni.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'stern.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'stylishdekoration.com' completed.
SUCCESS: Update of domain 'waller.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'wesley.yourstylishclothing.com' completed.
SUCCESS: Update of domain 'yourstylishclothing.com' completed.
[root@static ~]#

Enable nginx caching promlem :(


777.PNG
 
Sorry, my mistake. Command should be

# for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select name from domains"`; do /usr/local/psa/bin/subscription --update-web-server-settings
$i -nginx-cache-enabled true; done
 
Sorry, my mistake. Command should be

# for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select name from domains"`; do /usr/local/psa/bin/subscription --update-web-server-settings
$i -nginx-cache-enabled true; done

Süper thansk :)
 
Back
Top