Add hub to the list of hosts, I forgot that docs cgi scripts actually
run on hub.
This commit is contained in:
parent
97fa1675c8
commit
164f4a22c6
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=26179
1 changed files with 3 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
# $FreeBSD: www/en/cgi/cgi-style.pl,v 1.24 2005/10/28 19:07:36 fenner Exp $
|
||||
# $FreeBSD: www/en/cgi/cgi-style.pl,v 1.25 2005/10/29 15:08:21 fenner Exp $
|
||||
#
|
||||
# Perl routines to encapsulate various elements of HTML page style.
|
||||
|
||||
|
@ -12,8 +12,8 @@ if (!defined($hsty_base)) {
|
|||
# $hsty_base should be relative if possible, so that mirrors
|
||||
# serve their local copy instead of going to the main site.
|
||||
# However, if we aren't running as a cgi, or if we're
|
||||
# running on docs or people, use the absolute home path.
|
||||
if (!defined($ENV{'HTTP_HOST'}) || $ENV{'HTTP_HOST'} =~ /(docs|people).freebsd.org/) {
|
||||
# running on hub, docs or people, use the absolute home path.
|
||||
if (!defined($ENV{'HTTP_HOST'}) || $ENV{'HTTP_HOST'} =~ /(hub|docs|people).freebsd.org/) {
|
||||
$hsty_base = 'http://www.FreeBSD.org'
|
||||
} else {
|
||||
$hsty_base = '..';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue