Necessary changes for web server to operate behind nginx