I'm trying install DocuWiki script on nginx web server. Documentation says that I need to put following directive at nginx config file:
location ^~ /lib/ {
expires 30d;
}
When I try to add this, nginx stops sending .php files from lib directory to php-fpm, and send it to me like octet-streams for download. How can I correct this?
Here is the working configuration:
location ~ ^/lib.*\.(gif|png|ico|jpg)$ {
expires 30d;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With