Modified to work with nginx installed in /opt/nginx