How to set custom expire time on DANGINX module

Back

You can add custom expire time for domain/subdomain as follows, (example is for 30 days):

 

echo "30d" > /etc/danginx/expires/foo.com

 

Now you need to recompile nginx vhost

 

/usr/local/directadmin/scripts/rebuildnginxvhost

Was this article helpful?
Dislike0 Like0

Views: 1001