> Looks like the code in medusa_http.py is broken in this respect: This bit me when I started running my Quixote+Medusa app from behind a router, and the redirects started failing because the client was receiving a URI that was only valid on my LAN. I thought the problem was caused by my own ignorance, so I wrote an app_redirect() function which does this: def app_redirect(request, path, permanent=0): # The 'path' here is like '/app/something/whatsis' (no server) url = request.environ.get('HTTP_REFERER') or request.get_url() newpath = urlparse.urljoin(url, path) return request.response.redirect(newpath, permanent) I was thinking of specifying a value of SERVER_NAME for Medusa to use in the config file to force the app to use the server's 'public' name, but then it would not work on my LAN. amk has pointed out that 'server_name' should not, as the QuixoteHandler docstring claims, become SERVER_NAME, but instead it should be SERVER_SOFTWARE. >From the CGI standard (http://hoohoo.ncsa.uiuc.edu/cgi/env.html): SERVER_SOFTWARE The name and version of the information server software answering the request (and running the gateway). Format: name/version SERVER_NAME The server's hostname, DNS alias, or IP address as it would appear in self-referencing URLs. Jim Dukarm DELTA-X RESEARCH Victoria BC Canada