summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Mailman/Cgi/listinfo.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Mailman/Cgi/listinfo.py b/Mailman/Cgi/listinfo.py
index f4c7ba215..0aea64474 100644
--- a/Mailman/Cgi/listinfo.py
+++ b/Mailman/Cgi/listinfo.py
@@ -60,7 +60,8 @@ def FormatListinfoOverview(error=None):
# XXX We need a portable way to determine the host by which we are being
# visited! An absolute URL would do...
- http_host = os.environ.get('HTTP_HOST')
+ http_host = os.environ.get('HTTP_HOST') or\
+ os.environ.get('SERVER_NAME')
port = os.environ.get('SERVER_PORT')
# strip off the port if there is one
if port and http_host[-len(port)-1:] == ':'+port: