nginx path auto detection