>request.META['HOSTNAME'] works for getting the host when django is >started with the builtin webserver, but doesn't work with the fcgi >backend.
request.META['HTTP_HOST'] doesn't work? Because that's the common way to access the HTTP header Host: - that should work with SCGI/FCGI, too. bye, Georg