Hey guys, I've been slaving at this for quite a while and almost have nginx working with mediacore. I actually had it working for 10 minutes, but something happened and it went away, never to return :(. I'd have used apache a long time ago, but nginx is what's serving everything else on my server.
I've spent several hours after that trying to get the site to work again. I think it has to do with my nginx setup.
Here is my file in sites-enabled:
server {
listen 80;
server_name http://www.yay.com;
access_log /var/log/nginx/mediacore.log;
client_max_body_size 1500M;
root /home/mediacore/mediacore/mediacore/public;
location ~*/(appearance)/ {
root /home/mediacore/mediacore/data ;
break;
}
location ~*(/images\/media|images\/podcasts) {
root /home/mediacore/mediacore/data ;
break;
}
location ~*/(styles|scripts|images)/ {
expires max;
add_header Cache-Control "public";
break;
}
location /__mediacore_serve__ {
alias /home/mediacore/mediacore/data/media;
internal;
}
location / {
include uwsgi_params;
uwsgi_pass unix:///tmp/uwsgi-mediacore.sock;
include uwsgi_params;
uwsgi_param SCRIPT_NAME '';
}
}
Thanks in advanced!