Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
apache_mod_wsgi [2017/06/28 10:16]
steve [Apache 2.4]
apache_mod_wsgi [2017/06/28 10:18]
steve [Apache 2.4]
Line 4: Line 4:
  
   * [[http://​modwsgi.readthedocs.io/​en/​develop/​|mod_wsgi homepage]]   * [[http://​modwsgi.readthedocs.io/​en/​develop/​|mod_wsgi homepage]]
 +  * [[http://​modwsgi.readthedocs.io/​en/​develop/​configuration.html|mod_wsgi Apache Directives]]
  
 ==== Ubuntu ==== ==== Ubuntu ====
Line 32: Line 33:
 def application(environ,​ start_response):​ def application(environ,​ start_response):​
  status = '200 OK'  status = '200 OK'
- output = b'o hai'+ output = b'Hello, world!'
  response_headers = [('​Content-type',​ '​text-plain'​),​ ('​Content-Length',​ str(len(output)))]  response_headers = [('​Content-type',​ '​text-plain'​),​ ('​Content-Length',​ str(len(output)))]
  start_response(status,​ response_headers)  start_response(status,​ response_headers)