git: 14f46779a7 - main - cgi/cgi-style.pl: Prepare it to decouple man|ports from the main site

"Danilo G. Baio" <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
The branch main has been updated by dbaio:

URL: https://cgit.FreeBSD.org/doc/commit/?id=14f46779a78105aa3fc0eda09da3f856039b49b0

commit 14f46779a78105aa3fc0eda09da3f856039b49b0
Author:     Danilo G. Baio <[email protected]>
AuthorDate: 2023-01-25 19:15:17 +0000
Commit:     Danilo G. Baio <[email protected]>
CommitDate: 2023-01-25 19:15:17 +0000

    cgi/cgi-style.pl: Prepare it to decouple man|ports from the main site
    
    While here, remove cgi and hub, they are not used anymore.
---
 website/content/en/cgi/cgi-style.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/website/content/en/cgi/cgi-style.pl b/website/content/en/cgi/cgi-style.pl
index 3706daab96..0479cfbb3b 100644
--- a/website/content/en/cgi/cgi-style.pl
+++ b/website/content/en/cgi/cgi-style.pl
@@ -14,7 +14,7 @@ if (!defined($hsty_base)) {
     # However, if we aren't running as a cgi, or if we're
     # running on cgi, hub, docs or people, use the absolute home path.
     if (!defined($ENV{'HTTP_HOST'}) ||
-	$ENV{'HTTP_HOST'} =~ /(cgi|hub|docs|people|mailarchive.ysv).freebsd.org/i) {
+	$ENV{'HTTP_HOST'} =~ /(docs|man|man-dev|people|ports|mailarchive.ysv).freebsd.org/i) {
 
 	$hsty_base = '//www.FreeBSD.org'
     } else {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.