And when you went to the Apache error log as the message suggested you
should, what did you find?

Graham

On 21 October 2010 02:56, nitin chandra <[email protected]> wrote:
> Hello All,
>
> I have set up mod_wsgi + apache on Ubuntu with SSL enabled. And it works.
>
> I am able to see Hello World.
>
> Now i have also keyed in  index.py  as follows and done a soft link to
> index.wsgi. i really want to work in this way and p, just bear with me
> till i get it to run for few months and onwards.
>
> Thank you
>
> Nitin
> -------------------
>
> In Apache 's httpd.conf I have also set 'DirectoryIndex index.html
> index.wsgi index.py'
>
> On entering https://healthcare.in/index.py
>
> ***
> 500 Internal Server Error
>
> The server encountered an internal error or misconfiguration and was
> unable to complete your request.
>
> Please contact the server administrator, [email protected] and inform
> them of the time the error occurred, and anything you might have done
> that may have caused the error.
>
> More information about this error may be available in the server error log.
>
> ****
>
>
> index.py
> ----------------
> import os
> from datetime import datetime
> import re
>
> class Handles:
>    def do(self, environ, start_response):
>
>       uri = environ['REQUEST_URI']
>
>       html = "<html><head><title>Index of %s</title></head><body>" % uri
>       html += "<h1>Index of %s</h1>" % uri
>       html += "<table border='0'>"
>       html += '<tr><th>Last
> Modified</th><th>Size</th>Description</th><th>Webifiable</th><tr><th
> colspan="6"><hr></th></tr>
>       html += '<tr><td><a href="..">Parent
> Directory</a></td><td>&nbsp;</td><td align="right"> -
> </td><td>&nbsp;</td><td>&n
>       html += '<tr><th colspan="6"><hr></th></tr>'
>       html += "</tables>"
>
>       html += "</body></html>"
>
>       output = html
>       mimeType = 'text/html'
>
>       status = '200 OK'
>       response_headers = [('Content-type', mimeType),
>                           ('content-Length' , str(len(output)))]
>
>       start_response(status, start_response):
>       return [output]
>
>    def application(environ, start_response):
>        handler = Handler()
>        return handler.do(environ, start_response)
>
> --
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/modwsgi?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.

Reply via email to