On Sep 10, 11:18 am, AZMel <[EMAIL PROTECTED]> wrote:
> > Stupid question, but do you have any residual mod_rewrite rules in
> > your Apache configuration somewhere pertaining to when you were trying
> > to host TG behind Apache?
>
> > Graham
>
> None.  I had them in a separate file and removed them using
> a2dissite.  I actually thought of that too.
>
> Just in case I am completely reinstalling TG 1.0.5 to see what
> happens.  Not sure of the fix for 1.0.6 is causing my trouble.  Always
> worth a shot.

To be absolutely sure, use first recipe in section:

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

Namely:

import pprint

class LoggingMiddleware:

    def __init__(self, application):
        self.__application = application

    def __call__(self, environ, start_response):
        errors = environ['wsgi.errors']
        pprint.pprint(('REQUEST', environ), stream=errors)

        def _start_response(status, headers):
            pprint.pprint(('RESPONSE', status, headers),
stream=errors)
            return start_response(status, headers)

        return self.__application(environ, _start_response)

def application(environ, start_response):
    environ['SCRIPT_NAME'] = ''
    return cherrypy._cpwsgi.wsgiApp(environ, start_response)

application = LoggingMiddleware(application)

Find the request headers from Apache error log and post so can
evaluate whether something is still playing with request information
before it gets to WSGI application.

Graham
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to