# find out our URL, needed for syndication
try:
n = os.environ['SERVER_NAME']
- p = os.environ['SERVER_PORT']
+ # Removed port because it messes up when behind a proxy
+ #p = os.environ['SERVER_PORT']
s = os.environ['SCRIPT_NAME']
- if p == '80': p = ''
- else: p = ':' + p
- full_url = 'https://%s%s%s' % (n, p, s)
+ #if p == '80': p = ''
+ #else: p = ':' + p
+ full_url = 'https://%s%s' % (n, s)
except KeyError:
full_url = 'Not needed'