From 0dbe92ea183712f7b7714334c6523a1ca81f8988 Mon Sep 17 00:00:00 2001 From: ghost Date: Thu, 23 Nov 2023 19:03:12 +0200 Subject: [PATCH] add forum links support --- nginx/opennet/README.md | 1 + nginx/opennet/locations/include/common.conf | 9 ++++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/nginx/opennet/README.md b/nginx/opennet/README.md index ab79efc..f8da7c4 100644 --- a/nginx/opennet/README.md +++ b/nginx/opennet/README.md @@ -15,6 +15,7 @@ Current implementation forward subdomains to following proxy locations: * `solaris.opennet.ru` > `/opennet/solaris` * `web.opennet.ru` > `/opennet/web` * `wiki.opennet.ru` > `/opennet/wiki` +* `forum.opennet.ru` > `/opennet/wwwcgi-bin/openforum/vsluhboard.cgi` ## Installation diff --git a/nginx/opennet/locations/include/common.conf b/nginx/opennet/locations/include/common.conf index df41481..7fc351b 100644 --- a/nginx/opennet/locations/include/common.conf +++ b/nginx/opennet/locations/include/common.conf @@ -110,4 +110,11 @@ sub_filter 'http://grab.opennet.ru' 'http://[$server_addr]/opennet/grab'; sub_filter 'https://grab.opennet.ru' 'http://[$server_addr]/opennet/grab'; sub_filter 'http://grab.opennet.me' 'http://[$server_addr]/opennet/grab'; -sub_filter 'https://grab.opennet.me' 'http://[$server_addr]/opennet/grab'; \ No newline at end of file +sub_filter 'https://grab.opennet.me' 'http://[$server_addr]/opennet/grab'; + +# forum +sub_filter 'http://forum.opennet.ru' 'http://[$server_addr]/opennet/wwwcgi-bin/openforum/vsluhboard.cgi'; +sub_filter 'https://forum.opennet.ru' 'http://[$server_addr]/opennet/wwwcgi-bin/openforum/vsluhboard.cgi'; + +sub_filter 'http://forum.opennet.me' 'http://[$server_addr]/opennet//wwwcgi-bin/openforum/vsluhboard.cgi'; +sub_filter 'https://forum.opennet.me' 'http://[$server_addr]/opennet/wwwcgi-bin/openforum/vsluhboard.cgi'; \ No newline at end of file