jozwikjp
Expert
Friendly Neighbour
Member Likes (0)
Hi Guys,
I am having a odd issue.
I add the file type .zip I am able to upload the file as admin in the man site and I can access the file.
When I upload the file as a multi site user the file uploads I can see the file in the media manager.
I can confirm that the file exists on the server with the same permissions as all the other files.
But when I click to download the file I get a nginx 404 error.
If I upload a graphic it works AOK I can download it no problem
I am guessing it is my nginx conf
location ~* ^.+\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js)$
{
root /home/mysiteinc.net/htdocs;
rewrite ^/.*(/wp-.*/.*\.(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$ $1 last;
rewrite ^.*/files/(.*(html|jpg|jpeg|gif|png|ico|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|js))$/wp-includes/ms-files.php?file=$1 last;
expires 30d;
break;
}
Anythoughts?
Responses (1)
Member (joined August 2010) Likes (0)
Nevermind got it
missing
rewrite ^.+/?(/ms-.*) $1 last;
rewrite ^/files/(.+) /wp-includes/ms-files.php?file=$1 last;
WordPress Questions?
We've got answers!
Find out more »