Run 'tail -f' on the Apache error log when you make the request and
see if anything at all is added. Tail both the main Apache error log
and the virtual host specific one if you are using one. Ensure that:

LogLevel info

is set at global Apache scope and not just in the virtual host.

If 'info' you should see mod_wsgi log stuff when it loads the script
file and restart processes, so there can't be nothing in the logs if
you already have that set.

In main Apache error log, especially keep an eye out for 'Segmentation
fault' messages.

You can ignore what IE shows you as it will put up its own crappy
error pages and will hide the original server error page if it isn't
over a certain length.

Start also trying to add some print debug statements in your
myapp.wsgi script file to see if it is actually being loaded and how
far it is getting. See guidelines in:

http://code.google.com/p/modwsgi/wiki/DebuggingTechniques#Apache_Error_Log_Files

Also set DEBUG=True in Django settings file in case the problem is
internal to how you have setup Django. You may have missing 404/500
error page handlers.

Finally, you can always try and capture what is going in and out of
WSGI application. See:

http://code.google.com/p/modwsgi/wiki/DebuggingTechniques#Tracking_Request_and_Response

In short, just start debugging it with low level techniques for
working out how far it gets.

Graham

On 1 April 2011 14:11, Fred <[email protected]> wrote:
> sorry for not being clear.  My "myapp.wsgi" as shown below works.
> import sys
> def application(environ, start_response):
>     status = '200 OK'
>     output = 'Hello World! instant change test xxx from ' + __file__
>     temp = environ.items()
>     temp.sort()
>     temp = ['%-20s\t%s' % x for x in temp]
>     paths = '\n'.join(temp)
>     output += '\n'+paths
>
>
>     response_headers = [ ('Content-type', 'text/plain'),
>                          ('Content-Length', str(len(output)))
>                          ]
>     start_response(status, response_headers)
>     return [output]
> ----------------------------------------
> The test3.wsgi I posted previously responds with nothing and no source (i.e.
> view->source) from Firefox 4.0 but
> the access_log shows the hits on myapp.wsgi but shows nothing on test3.wsgi.
>
>  If I go to I.E.  I get "Internet Explorer cannot display the webpage"and
> view source shows
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd";>
>
> <html>
>
>
>
> <head>
>
> <link rel="stylesheet" type="text/css" href="ErrorPageTemplate.css" >
>
>
>
> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
>
> <title>Internet Explorer cannot display the webpage</title>
>
>
>
> <script src="errorPageStrings.js" language="javascript"
> type="text/javascript">
>
> </script>
>
> <script src="httpErrorPagesScripts.js" language="javascript"
> type="text/javascript">
>
> </script>
>
> </head>
>
>
>
> <body onLoad="javascript:initMoreInfo('infoBlockID');">
>
>
>
> <table width="730" cellpadding="0" cellspacing="0" border="0">
>
>
>
> <!-- Error title -->
>
> <tr>
>
> <td id="infoIconAlign" width="60" align="left" valign="top" rowspan="2">
>
> <img src="noConnect.png" id="infoIcon" alt="Info icon" width="48"
> height="48">
>
> </td>
>
> <td id="mainTitleAlign" valign="middle" align="left" width="*">
>
> <h1 id="mainTitle">Internet Explorer cannot display the webpage</h1>
>
> </td>
>
> </tr>
>
>
>
> <tr>
>
> <!-- This row is for HTTP status code, as well as the divider-->
>
> <td id="errorCodeAlign" class="errorCodeAndDivider" align="right">&nbsp;
>
> <div class="divider"></div>
>
> </td>
>
> </tr>
>
>
>
> <!-- What you can do -->
>
> <tr>
>
> <td>
>
> &nbsp;
>
> </td>
>
> <td id="whatToTryAlign" valign="top" align="left">
>
> <h2 id="whatToTry">What you can try:</h2>
>
> </td>
>
> </tr>
>
>
>
> <!-- Check Connection -->
>
> <tr>
>
> <td >
>
> &nbsp;
>
> </td>
>
> <td id="checkConnectionAlign" align="left" valign="middle">
>
> <h4>
>
> <table>
>
> <tr>
>
> <td valign="top">
>
> </td>
>
> <td valign="middle">
>
> <button onclick="javascript:diagnoseConnectionAndRefresh(); return false;"
> id="diagnose">Diagnose Connection Problems</button>
>
> </td>
>
> </tr>
>
> </table>
>
> </h4>
>
> </td>
>
> </tr>
>
>
>
>
>
> <!-- InfoBlock -->
>
> <tr>
>
> <td id="infoBlockAlign" align="right" valign="top">
>
> &nbsp;
>
> </td>
>
> <td id="moreInformationAlign" align="left" valign="middle">
>
> <h4>
>
> <table>
>
> <tr>
>
> <td valign="top">
>
> <a href="#" onclick="javascript:expandCollapse('infoBlockID', true); return
> false;"><img src="down.png" id="infoBlockIDImage" border="0"
> class="actionIcon" alt="More information"></a>
>
> </td>
>
> <td valign="top">
>
> <span id="moreInfoContainer"></span>
>
> <noscript><ID id="moreInformation">More information</ID></noscript>
>
> </td>
>
> </tr>
>
> </table>
>
> </h4>
>
> <div id="infoBlockID" class="infoBlock" style="display: none">
>
> <p>
>
> <ID id="errorExpl1">This problem can be caused by a variety of issues,
> including:</ID>
>
> <ul>
>
> <li id="errorExpl2">Internet connectivity has been lost.</li>
>
> <li id="errorExpl3">The website is temporarily unavailable.</li>
>
> <li id="errorExpl4">The Domain Name Server (DNS) is not reachable.</li>
>
> <li id="errorExpl5">The Domain Name Server (DNS) does not have a listing for
> the website's domain.</li>
>
> <li id="errorExpl7">There might be a typing error in the address.</li>
>
> <li id="errorExpl6">If this is an HTTPS (secure) address, click Tools, click
> Internet Options, click Advanced, and check to be sure the SSL and TLS
> protocols are enabled under the security section.</li>
>
> </ul>
>
> </p>
>
> <p id="offlineUsers"><b>For offline users</b></p>
>
> <p id="viewSubscribedFeeds1">
>
> You can still view subscribed feeds and some recently viewed webpages.<br/>
>
> To view subscribed feeds
>
> <ol>
>
> <li id="viewSubscribedFeeds2">Click the Favorites Center button <img
> src="favcenter.png" border="0">, click Feeds, and then click the feed you
> want to view.</li>
>
> </ol>
>
> </p>
>
> <p id="viewRecentWebpages1">To view recently visited webpages (might not
> work on all pages)
>
> <ol>
>
> <li id="viewRecentWebpages2">Click Tools <img src="tools.png" border="0">,
> and then click Work Offline.</li>
>
> <li id="viewRecentWebpages3">Click the Favorites Center button <img
> src="favcenter.png" border="0">, click History, and then click the page you
> want to view.</li>
>
> </ol>
>
> </p>
>
> </div>
>
> </td>
>
> </tr>
>
>
>
> </table>
>
>
>
> </body>
>
> </html>
>
>
>
> .Ù
>
> the access_log shows the hits on myapp.wsgi but shows nothing on test3.wsgi.
>
> --
> 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