Adapts WSGI configuration