On 21 October 2010 16:16, nitin chandra <[email protected]> wrote: > The following is from my apache/log/error_log > > [Wed Oct 20 21:22:57 2010] [error] [client 192.168.1.9] Target WSGI > script not found or unable to stat: /home/dev/wsgi-scrip > [Wed Oct 20 21:26:25 2010] [error] [client 192.168.1.9] Target WSGI > script not found or unable to stat: /home/dev/wsgi-scrip > [Thu Oct 21 10:41:28 2010] [warn] RSA server certificate CommonName > (CN) `ubuntu' does NOT match server name!? > [Thu Oct 21 10:41:28 2010] [notice] suEXEC mechanism enabled (wrapper: > /opt/apache2215/bin/suexec) > [Thu Oct 21 10:41:28 2010] [notice] Digest: generating secret for > digest authentication ... > [Thu Oct 21 10:41:28 2010] [notice] Digest: done > [Thu Oct 21 10:41:29 2010] [warn] RSA server certificate CommonName > (CN) `ubuntu' does NOT match server name!? > [Thu Oct 21 10:41:29 2010] [warn] pid file > /opt/apache2215/logs/httpd.pid overwritten -- Unclean shutdown of > previous Apache > [Thu Oct 21 10:41:29 2010] [notice] Apache/2.2.15 (Unix) > mod_ssl/2.2.15 OpenSSL/0.9.8k DAV/2 mod_wsgi/3.2 Python/2.6.5 confi > [Thu Oct 21 10:41:45 2010] [error] [client 192.168.1.9] Symbolic link > not allowed or link target not accessible: /home/dev/w
Looks like you haven't enabled FollowSymLinks in Apache or your symlink is broken. Graham > [Thu Oct 21 10:41:45 2010] [error] [client 192.168.1.9] Target WSGI > script not found or unable to stat: /home/dev/wsgi-scrip > [Thu Oct 21 10:41:50 2010] [error] [client 192.168.1.9] mod_wsgi > (pid=1329): Target WSGI script '/home/dev/wsgi-scripts/inde > [Thu Oct 21 10:42:36 2010] [error] Exception KeyError: > KeyError(139750291932960,) in <module 'threading' from '/usr/lib/pyth > [Thu Oct 21 10:42:36 2010] [error] Exception KeyError: > KeyError(139750291932960,) in <module 'threading' from '/usr/lib/pyth > [Thu Oct 21 10:42:36 2010] [error] Exception KeyError: > KeyError(139750291932960,) in <module 'threading' from '/usr/lib/pyth > [Thu Oct 21 10:42:36 2010] [error] Exception KeyError: > KeyError(139750291932960,) in <module 'threading' from '/usr/lib/pyth > [Thu Oct 21 10:42:36 2010] [notice] caught SIGTERM, shutting down > [Thu Oct 21 10:42:37 2010] [error] Exception KeyError: > KeyError(139750291932960,) in <module 'threading' from '/usr/lib/pyth > [Thu Oct 21 10:42:37 2010] [error] Exception KeyError: > KeyError(139750291932960,) in <module 'threading' from '/usr/lib/pyth > [Thu Oct 21 10:42:37 2010] [error] Exception KeyError: > KeyError(139750291932960,) in <module 'threading' from '/usr/lib/pyth > [Thu Oct 21 10:42:37 2010] [error] Exception KeyError: > KeyError(139750291932960,) in <module 'threading' from '/usr/lib/pyth > [Thu Oct 21 10:42:37 2010] [error] Exception KeyError: > KeyError(139750291932960,) in <module 'threading' from '/usr/lib/pyth > [Thu Oct 21 10:42:37 2010] [error] Exception KeyError: > KeyError(139750291932960,) in <module 'threading' from '/usr/lib/pyth > > Nitin > > On Thu, Oct 21, 2010 at 8:19 AM, Graham Dumpleton > <[email protected]> wrote: >> 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> </td><td align="right"> - >>> </td><td> </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, response_headers) >>> 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.
