updated for nginx config instead of apache config