there wasnt any nginx rules in the script.
so i converted the apache rules located in the /public/.htaccess to nginx rules.
location / {
autoindex off;
if ($http_authorization) {
set $http_authorization $http_authorization;
}
rewrite .+/$ $1 permanent;
try_files $uri $uri/ /index.php?$args;
}
location ~ ..(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav)$ {
add_header Cache-Control "max-age=31536000, public";
expires 1y;
error_log /dev/null;
access_log /dev/null;
}
location ~ ..(jpg|jpeg|png|gif|swf)$ {
add_header Cache-Control "max-age=604800, public";
expires 1y;
error_log /dev/null;
access_log /dev/null;
}
location ~ .*.(txt|xml|js|css)$ {
add_header Cache-Control "max-age=10800, public";
expires 1y;
error_log /dev/null;
access_log /dev/null;
}
location ~ .(html|htm|php|cgi|pl)$ {
add_header Cache-Control "max-age=0, private, no-store, no-cache, must-revalidate";
add_header Pragma "no-cache";
}