Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Version 5 (modified by anonymous, 13 years ago) (diff)


Documentation on running apache as a frontend to a TurboGears server can be found at the  CherryPy Wiki.

One issue not addressed there is inconsistent character sets. The default Kid templates used by turbogears specify a charset of utf-8. The apache default charset, returned in the "Content-Type" header, is ISO-8859-1. This inconsistency will cause errors during validation and incorrect rendering of some characters on the client. Use this directive to override the apache default:

  AddDefaultCharset utf-8

You can also explicitly set the charset property in the content-type header from cherrypy

  cherrypy.response.headerMap["Content-Type"] += ";charset=utf-8"

that way, since a charset is specified, apache won't apply the default charset.

Note that you can't use _cpFilterList, you have to make the filter changes to the config file, like so:

baseUrlFilter.on = True
baseUrlFilter.useXForwardedHost = True