2009/12/13 nitin chandra <nitinchand...@gmail.com>: > Hello All, > > Hi Graham, > > This "error" is when in httpd.conf the line reads like > > WSGIScriptAlias /hello /wsgi/static/hello.wsgi > > This is the message which is displayed by the browser: > > ************************************************************ > http://192.168.1.15/hello
The log shows errors from numerous requests, many for a possibly different configuration, instead of just for the one particular one you say you made. You even truncated the last one so don't even know if that was the last one in the log file. So hard to know what errors really match your request. What do you get at the moment if you run the commands: ls -las /wsgi ls -las /wsgi/static Is that 'wsgi' directory truly in the root directory of your file system? Do you have at the moment in your Apache configuration: <Directory /wsgi/static> Order allow,deny Allow from all </Directory> Are you trying to do this inside of a VirtualHost in Apache configuration? If you are, do you have more than one VirtualHost defined and have you defined NameVirtualHost directive appropriately? And I only want to know, am not saying to change anything at this point. Do you have SELinux extensions enabled on your system. Read: http://www.crypt.gen.nz/selinux/disable_selinux.html Graham > Internal Server Error > The server encountered an internal error or misconfiguration and was > unable to complete your request. > > Please contact the server administrator, y...@example.com 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. > > ************************************************************ > > Following are the lines from error_log in /opt/apache2/logs/ > > > [Sat Dec 12 01:35:17 2009] [notice] Apache/2.2.13 (Unix) > mod_ssl/2.2.13 OpenSSL/0.9.8g mod_wsgi/2.5 Python/2.6.2 configured > [Sat Dec 12 01:35:31 2009] [error] [client 192.168.1.3] mod_wsgi > (pid=2260): Target WSGI script '/wsgi/static/hello.wsgi' do > [Sat Dec 12 01:37:01 2009] [error] [client 192.168.1.3] File does not > exist: /opt/apache2/htdocs/hello.wsgi > [Sat Dec 12 01:37:20 2009] [error] [client 192.168.1.3] File does not > exist: /opt/apache2/htdocs/wsgi/static/hello > [Sat Dec 12 01:37:26 2009] [error] [client 192.168.1.3] File does not > exist: /opt/apache2/htdocs/favicon.ico > [Sat Dec 12 01:39:08 2009] [error] [client 192.168.1.3] File does not > exist: /opt/apache2/htdocs/etc > [Sat Dec 12 01:39:21 2009] [error] [client 192.168.1.3] File does not > exist: /opt/apache2/htdocs/etc > [Sat Dec 12 01:41:19 2009] [error] [client 192.168.1.3] mod_wsgi > (pid=2262): Target WSGI script '/wsgi/static/hello.wsgi' do > [Sat Dec 12 01:41:38 2009] [error] [client 192.168.1.3] mod_wsgi > (pid=2260): Target WSGI script '/wsgi/static/hello.wsgi' do > [Sat Dec 12 01:41:41 2009] [error] [client 192.168.1.3] mod_wsgi > (pid=2262): Target WSGI script '/wsgi/static/hello.wsgi' do > [Sat Dec 12 01:45:42 2009] [error] [client 192.168.1.3] File does not > exist: /opt/apache2/htdocs/etc > [Sat Dec 12 02:00:56 2009] [error] [client 192.168.1.3] File does not > exist: /opt/apache2/htdocs/wsgi/static/hello > [Sat Dec 12 02:01:44 2009] [error] [client 192.168.1.3] File does not > exist: /opt/apache2/htdocs/wsgi/static/hello > [Sat Dec 12 02:01:53 2009] [error] [client 192.168.1.3] mod_wsgi > (pid=2260): Target WSGI script '/wsgi/static/hello.wsgi' do > [Sat Dec 12 02:08:26 2009] [notice] caught SIGTERM, shutting down > [Sat Dec 12 02:08:31 2009] [warn] Init: Session Cache is not > configured [hint: SSLSessionCache] > [Sat Dec 12 02:08:32 2009] [notice] Apache/2.2.13 (Unix) > mod_ssl/2.2.13 OpenSSL/0.9.8g mod_wsgi/2.5 Python/2.6.2 configured > [Sat Dec 12 02:08:39 2009] [error] [client 192.168.1.3] client denied > by server configuration: /wsgi/static/hello > [Sat Dec 12 02:09:05 2009] [error] [client 192.168.1.3] client denied > by server configuration: /wsgi/static/hello > [Sat Dec 12 02:15:56 2009] [notice] caught SIGTERM, shutting down > [Sun Dec 13 00:13:14 2009] [warn] Init: Session Cache is not > configured [hint: SSLSessionCache] > [Sun Dec 13 00:13:15 2009] [notice] Apache/2.2.13 (Unix) > mod_ssl/2.2.13 OpenSSL/0.9.8g mod_wsgi/2.5 Python/2.6.2 configured > [Sun Dec 13 00:13:25 2009] [error] [client 192.168.1.3] Target WSGI > script not found or unable to stat: /wsgi/static/hello > [Sun Dec 13 00:14:13 2009] [error] [client 192.168.1.3] File does not > exist: /opt/apache2/htdocs/favicon.ico > [Sun Dec 13 00:14:35 2009] [error] [client 192.168.1.3] Target WSGI > script not found or unable to stat: /wsgi/static/hello > [Sun Dec 13 00:15:58 2009] [notice] caught SIGTERM, shutting down > [Sun Dec 13 00:16:01 2009] [warn] Init: Session Cache is not > configured [hint: SSLSessionCache] > [Sun Dec 13 00:16:01 2009] [notice] Apache/2.2.13 (Unix) > mod_ssl/2.2.13 OpenSSL/0.9.8g mod_wsgi/2.5 Python/2.6.2 configured > [Sun Dec 13 00:16:13 2009] [error] [client 192.168.1.3] mod_wsgi > (pid=2498): Target WSGI script '/wsgi/static/hello.wsgi' do > > ********************************************************************** > > Till now the development and testing is through the http / web browser > only. Until and unless really required to test in Python prompt, this > will be the way i will be doing it ( as i need to test web forms and > xml also). > > Thanks > > Nitin > > -- > > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To post to this group, send email to modw...@googlegroups.com. > To unsubscribe from this group, send email to > modwsgi+unsubscr...@googlegroups.com. > 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 modw...@googlegroups.com. To unsubscribe from this group, send email to modwsgi+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.