Fixed getting current url for NGNIX