python def app(environ, start_response): status = '200 OK' response_headers = [('Content-type', 'text/html')] start_response(status, response_headers) return [b"Hello, World!"] nginx server { listen 80; server_name example.com; location / { proxy_pass http://localhost:8000; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; } } include /path/to/myapp.conf;


上一篇:
下一篇:
切换中文