Hi there i am getting 404 error on nginx and contacted the script developer and they asked me to put following code on the server, where should i put this?
`server {
server_name yourdomain.com www.yourdomain.com;
root /path/to/your/website.com/;
index index.html index.php;
# set expiration of assets to MAX for caching
location ~* \.(ico|css|js|gif|jpe?g|png)(\?[0-9]+)?$ {
expires max;
log_not_found off;
}
location / {
# Check if a file or directory index file exists, else route it to index.php.
try_files $uri $uri/ /index.php;
}
location /backups {
deny all;
return 404;
}
location ~* \.php$ {
fastcgi_pass 127.0.0.1:9000;
include fastcgi.conf;
}
}`