Issue
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?
Solution
Here is the working configuration:
location ~ ^/lib.*\.(gif|png|ico|jpg)$ {
expires 30d;
}
Answered By - SimWhite