summaryrefslogtreecommitdiff
path: root/tests/t0102-summary.sh
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-08-31 23:30:33 -0700
committerLars Hjemli <hjemli@gmail.com>2008-09-02 01:26:37 +0200
commit9c931b1e6e68f8dc891a5653035c3d70038ae3c0 (patch)
treea5cd6d953eb66ad77eb4e5b088e2022973fc4f61 /tests/t0102-summary.sh
parent687fb6d833d25144c86d1841fe0eca611f1eaeb1 (diff)
downloadcgit-9c931b1e6e68f8dc891a5653035c3d70038ae3c0.tar.gz
cgit-9c931b1e6e68f8dc891a5653035c3d70038ae3c0.tar.bz2
cgit-9c931b1e6e68f8dc891a5653035c3d70038ae3c0.zip
use Host: header to generate cgit_hosturl
I run an instance of lighttpd for cgit behind nginx (nginx doesn't execute CGI). So the port (SERVER_PORT=33333) that lighttpd runs on sends to cgit is different from the standard port 80 that public clients connect to (via nginx). This was causing the Atom feed URL to show the private port number that lighttpd was running on. Since the HTTP/1.1 "Host" header includes the port number if running on a non-standard port, it allows non-client-facing HTTP servers to transparently generate public URLs that clients can see. So use the "Host" header if it is available and fall back to SERVER_NAME/SERVER_PORT for some clients that don't set HTTP_HOST. Signed-off-by: Eric Wong <normalperson@yhbt.net>
Diffstat (limited to 'tests/t0102-summary.sh')
0 files changed, 0 insertions, 0 deletions
cript for radicaleRené 'Necoro' Neumann4-2/+56 2010-07-30Added radicaleRené 'Necoro' Neumann2-0/+29 2010-07-29New packagesRené 'Necoro' Neumann1-0/+0 2010-07-29New packagesRené 'Necoro' Neumann5-0/+75 2010-06-30Fix manifestRené 'Necoro' Neumann1-1/+1 2010-06-30moderncv 0.6 --> 0.10René 'Necoro' Neumann2-1/+1 2010-04-08Bumped lighttpdRené 'Necoro' Neumann5-252/+6 2010-04-01Added gpg and server useflag for fwknopRené 'Necoro' Neumann2-27/+47 2010-04-01Add fwknopRené 'Necoro' Neumann8-0/+133 2010-03-27Fix OpenSSL issue in lighttpdRené 'Necoro' Neumann3-1/+15 2010-03-26add patched lighttpdRené 'Necoro' Neumann17-0/+1208 2010-03-19Bumped app-text/highlightRené 'Necoro' Neumann2-0/+53 2010-03-02Added newer PolyML version for IsabelleRené 'Necoro' Neumann2-0/+31 2010-01-05Removed bpythonRené 'Necoro' Neumann2-33/+0 2009-11-11stgit-0.15 in portage nowRené 'Necoro' Neumann2-59/+0 2009-11-10Add stgit-0.15René 'Necoro' Neumann2-0/+59 2009-11-09Emacs stuff now in PortageRené 'Necoro' Neumann8-2222/+0 2009-11-07Emacs with fixed gtk menusRené 'Necoro' Neumann8-0/+2222 2009-10-27Remove old hibernate-script version.René 'Necoro' Neumann2-72/+0 2009-10-25Rename .bzrignore to .gitignoreRené 'Necoro' Neumann1-0/+0 2009-10-25Rename repo from 'necoro_private' to 'necoro'René 'Necoro' Neumann1-1/+1 2009-10-25Remove own hplip versionRené 'Necoro' Neumann4-210/+0 2009-10-25Remove own ctags versionRené 'Necoro' Neumann7-402/+0 2009-10-02Do not create isabelle desktop entryRené 'Necoro' Neumann2-2/+1 2009-09-28Add isabelle ebuildRené 'Necoro' Neumann3-0/+115 2009-09-05Removed glade ebuild. Newer versions included in treeRené 'Necoro' Neumann2-47/+0