def application(environ, start_response): output = b'Hello from uWSGI! Successfully proxied by Apache!' status = '200 OK' response_headers = [ ('Content-type', 'text/plain; charset=utf-8'), ('Content-Length', str(len(output))) ] start_response(status, response_headers) return [output]