Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

6 May, 2024: The networking issue during the past two days has been identified and may be fixed. Will keep monitoring.


devel / comp.infosystems.www.servers.unix / Using Apache2 as proxy to redirect traffic within LAN not working as intended

SubjectAuthor
* Using Apache2 as proxy to redirect traffic within LAN not working as intendedVincent “Giantvince1” Meadows
`* Re: Using Apache2 as proxy to redirect traffic within LAN notMarco Moock
 +- Re: Using Apache2 as proxy to redirect traffic within LAN not workingVincent “Giantvince1” Meadows
 `* Re: Using Apache2 as proxy to redirect traffic within LAN not workingVincent “Giantvince1” Meadows
  `- Re: Using Apache2 as proxy to redirect traffic within LAN not workingVincent “Giantvince1” Meadows

1
Using Apache2 as proxy to redirect traffic within LAN not working as intended

<ef3316a2-2623-4291-8f7c-1f713ec4cac4n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=92&group=comp.infosystems.www.servers.unix#92

  copy link   Newsgroups: comp.infosystems.www.servers.unix
X-Received: by 2002:ac8:598c:0:b0:3f0:abe7:24a2 with SMTP id e12-20020ac8598c000000b003f0abe724a2mr7053336qte.10.1683736445111;
Wed, 10 May 2023 09:34:05 -0700 (PDT)
X-Received: by 2002:a25:dc43:0:b0:ba1:6f1b:8905 with SMTP id
y64-20020a25dc43000000b00ba16f1b8905mr11273637ybe.4.1683736444855; Wed, 10
May 2023 09:34:04 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.infosystems.www.servers.unix
Date: Wed, 10 May 2023 09:34:04 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2604:2d80:d293:1400:0:0:0:2;
posting-account=DimvNAoAAAAYk7MdTsIa3a6jvHV4nU8a
NNTP-Posting-Host: 2604:2d80:d293:1400:0:0:0:2
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ef3316a2-2623-4291-8f7c-1f713ec4cac4n@googlegroups.com>
Subject: Using Apache2 as proxy to redirect traffic within LAN not working as intended
From: giantvin...@gmail.com (Vincent “Giantvince1” Meadows)
Injection-Date: Wed, 10 May 2023 16:34:05 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 10
 by: Vincent “Giantvinc - Wed, 10 May 2023 16:34 UTC

Hello, I've been having an issue with Apache2 refusing to proxy requests to the proper server based on domain name. Say, for example you've got mail.whatever.domain on one machine, then you've got otherservice.whatever.domain on another machine, and you want to have a proxy server receive requests for both domains to redirect the traffic where it belongs.

In my case, when I have this set up in such a manner, it seems to only proxy to one machine in particular, regardless of the fact that the IP addresses in the proxy rules are pointing to the correct machines in each "Server" block in the configs. Can someone please help me figure this out? It's driving me nuts!

Re: Using Apache2 as proxy to redirect traffic within LAN not working as intended

<u3goig$oiap$3@dont-email.me>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=93&group=comp.infosystems.www.servers.unix#93

  copy link   Newsgroups: comp.infosystems.www.servers.unix
Path: i2pn2.org!i2pn.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: mo0...@posteo.de (Marco Moock)
Newsgroups: comp.infosystems.www.servers.unix
Subject: Re: Using Apache2 as proxy to redirect traffic within LAN not
working as intended
Date: Wed, 10 May 2023 20:42:23 +0200
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <u3goig$oiap$3@dont-email.me>
References: <ef3316a2-2623-4291-8f7c-1f713ec4cac4n@googlegroups.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Injection-Date: Wed, 10 May 2023 18:42:24 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d733f7fef648e253b499624d0d8bd18d";
logging-data="805209"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+B8EYCh82UfIONSDSLUB2y"
Cancel-Lock: sha1:7uQCP2r5ysb4c3j8PlrJr/mFAdw=
 by: Marco Moock - Wed, 10 May 2023 18:42 UTC

Am 10.05.2023 um 09:34:04 Uhr schrieb Vincent “Giantvince1” Meadows:

> In my case, when I have this set up in such a manner, it seems to
> only proxy to one machine in particular, regardless of the fact that
> the IP addresses in the proxy rules are pointing to the correct
> machines in each "Server" block in the configs. Can someone please
> help me figure this out? It's driving me nuts!

Please post your configuration.

Re: Using Apache2 as proxy to redirect traffic within LAN not working as intended

<c4e5fd13-cdba-4afc-9839-52dc1a241ec4n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=94&group=comp.infosystems.www.servers.unix#94

  copy link   Newsgroups: comp.infosystems.www.servers.unix
X-Received: by 2002:ad4:55c7:0:b0:61a:ef78:d7f6 with SMTP id bt7-20020ad455c7000000b0061aef78d7f6mr3406074qvb.2.1683750204737;
Wed, 10 May 2023 13:23:24 -0700 (PDT)
X-Received: by 2002:a05:6902:2d1:b0:ba1:d0:7f7c with SMTP id
w17-20020a05690202d100b00ba100d07f7cmr8485418ybh.2.1683750204337; Wed, 10 May
2023 13:23:24 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!border-1.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.infosystems.www.servers.unix
Date: Wed, 10 May 2023 13:23:23 -0700 (PDT)
In-Reply-To: <u3goig$oiap$3@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2604:2d80:d293:1400:0:0:0:2;
posting-account=DimvNAoAAAAYk7MdTsIa3a6jvHV4nU8a
NNTP-Posting-Host: 2604:2d80:d293:1400:0:0:0:2
References: <ef3316a2-2623-4291-8f7c-1f713ec4cac4n@googlegroups.com> <u3goig$oiap$3@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <c4e5fd13-cdba-4afc-9839-52dc1a241ec4n@googlegroups.com>
Subject: Re: Using Apache2 as proxy to redirect traffic within LAN not working
as intended
From: giantvin...@gmail.com (Vincent “Giantvince1” Meadows)
Injection-Date: Wed, 10 May 2023 20:23:24 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 248
 by: Vincent “Giantvinc - Wed, 10 May 2023 20:23 UTC

On Wednesday, May 10, 2023 at 1:44:38 PM UTC-5, Marco Moock wrote:
> Am 10.05.2023 um 09:34:04 Uhr schrieb Vincent “Giantvince1” Meadows:
>
> > In my case, when I have this set up in such a manner, it seems to
> > only proxy to one machine in particular, regardless of the fact that
> > the IP addresses in the proxy rules are pointing to the correct
> > machines in each "Server" block in the configs. Can someone please
> > help me figure this out? It's driving me nuts!
> Please post your configuration.
Below is my entire config; everything is behind a NAT router, so the private IPs are accurate in this instance, I only have one public IP available.

<VirtualHost *:80>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
</VirtualHost>
<VirtualHost *:443>
ServerName pihole.meadowsburklepcrepair.com
ServerAdmin vincent@villageofgamers.net
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
DocumentRoot /var/www/html/admin
<Directory "/var/www/html/admin">
DirectoryIndex index.php
<RequireAny>
Require ip 10.0.0.0/24
Require ip 2604:2d80:d293:1400::/64
</RequireAny>
</Directory>
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
</VirtualHost>
<VirtualHost *:443>
ServerName dynmap.villageofgamers.net
ServerAdmin vincent@villageofgamers.net
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
DocumentRoot /var/www/html/dynmap
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
</VirtualHost>
<VirtualHost *:443>
ServerName mail.maxxburkleservices.com
ServerAdmin vincent@maxxburkleservices.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Proxy *>
<RequireAll>
Require all granted
Require not ip 10.0.2.0/24
</RequireAll>
</Proxy>
SSLProxyEngine on
SSLProxyVerify none
ProxyPass / https://10.0.0.5/
ProxyPassReverse / https://10.0.0.5/
ProxyRequests off
ProxyPreserveHost on
RequestHeader set X-Forwarded-Proto https
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
</VirtualHost>
<VirtualHost *:443>
ServerName mail.meadowsburklepcrepair.com
ServerAdmin vincent@meadowsburklepcrepair.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Proxy *>
<RequireAll>
Require all granted
Require not ip 10.0.2.0/24
</RequireAll>
</Proxy>
SSLProxyEngine on
SSLProxyVerify none
ProxyPass / https://10.0.0.5/
ProxyPassReverse / https://10.0.0.5/
ProxyRequests off
ProxyPreserveHost on
RequestHeader set X-Forwarded-Proto https
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
</VirtualHost>
<VirtualHost *:443>
ServerName mail.villageofgamers.net
ServerAdmin vincent@villageofgamers.net
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Proxy *>
<RequireAll>
Require all granted
Require not ip 10.0.2.0/24
</RequireAll>
</Proxy>
SSLProxyEngine on
SSLProxyVerify none
ProxyPass / https://10.0.0.5/
ProxyPassReverse / https://10.0.0.5/
ProxyRequests off
ProxyPreserveHost on
RequestHeader set X-Forwarded-Proto https
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
</VirtualHost>
<VirtualHost *:443>
ServerName maxxburkleservices.com
ServerAdmin vincent@maxxburkleservices.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
DocumentRoot /var/www/html/redirects
DirectoryIndex index.php
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
</VirtualHost>
<VirtualHost *:443>
ServerName meadowsburklepcrepair.com
ServerAdmin vincent@meadowsburklepcrepair.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
DocumentRoot /var/www/html/redirects
DirectoryIndex index.php
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
</VirtualHost>
<VirtualHost *:443>
ServerName nextcloud.meadowsburklepcrepair.com
ServerAdmin vincent@meadowsburklepcrepair.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
</IfModule>
<Directory /var/www/html/nextcloud>
<RequireAll>
Require all granted
Require not ip 10.0.2.0/24
</RequireAll>
DirectoryIndex index.php
</Directory>
DocumentRoot /var/www/html/nextcloud
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
</VirtualHost>
<VirtualHost *:443>
ServerName radio.villageofgamers.net
ServerAdmin vincent@villageofgamers.net
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLProxyEngine on
SSLProxyVerify none
ProxyPass / https://127.0.0.1:8443/
ProxyPassReverse / https://127.0.0.1:8443/
ProxyRequests off
ProxyPreserveHost on
RequestHeader set X-Forwarded-Proto https
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
</VirtualHost>
<VirtualHost *:443>
ServerName support.meadowsburklepcrepair.com
ServerAdmin vincent@meadowsburklepcrepair.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Proxy *>
<RequireAll>
Require all granted
Require not ip 10.0.2.0/24
</RequireAll>
</Proxy>
SSLProxyEngine on
SSLProxyVerify none
ProxyPass / https://10.0.0.3/
ProxyPassReverse / https://10.0.0.3/
ProxyRequests off
ProxyPreserveHost on
RequestHeader set X-Forwarded-Proto https
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
</VirtualHost>
<VirtualHost *:443>
ServerName vaultwarden.meadowsburklepcrepair.com
ServerAdmin vincent@maxxburkleservices.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Proxy *>
<RequireAll>
Require all granted
Require not ip 10.0.2.0/24
</RequireAll>
</Proxy>
SSLProxyEngine on
SSLProxyVerify none
ProxyPass / https://10.0.0.3/
ProxyPassReverse / https://10.0.0.3/
ProxyRequests off
ProxyPreserveHost on
RequestHeader set X-Forwarded-Proto https
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
</VirtualHost>
<VirtualHost *:443>
ServerName villageofgamers.net
ServerAdmin vincent@villageofgamers.net
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
DocumentRoot /var/www/html/redirects
DirectoryIndex index.php
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
</VirtualHost>

Re: Using Apache2 as proxy to redirect traffic within LAN not working as intended

<16065f2a-2425-4da6-834c-ba1bb19a2237n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=95&group=comp.infosystems.www.servers.unix#95

  copy link   Newsgroups: comp.infosystems.www.servers.unix
X-Received: by 2002:a05:620a:4711:b0:74d:fd99:ab3e with SMTP id bs17-20020a05620a471100b0074dfd99ab3emr6873437qkb.9.1683750510756;
Wed, 10 May 2023 13:28:30 -0700 (PDT)
X-Received: by 2002:a81:ac61:0:b0:55a:5a86:7b70 with SMTP id
z33-20020a81ac61000000b0055a5a867b70mr11688308ywj.4.1683750510170; Wed, 10
May 2023 13:28:30 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!3.eu.feeder.erje.net!feeder.erje.net!newsreader4.netcologne.de!news.netcologne.de!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.infosystems.www.servers.unix
Date: Wed, 10 May 2023 13:28:29 -0700 (PDT)
In-Reply-To: <u3goig$oiap$3@dont-email.me>
Injection-Info: google-groups.googlegroups.com; posting-host=2604:2d80:d293:1400:0:0:0:2;
posting-account=DimvNAoAAAAYk7MdTsIa3a6jvHV4nU8a
NNTP-Posting-Host: 2604:2d80:d293:1400:0:0:0:2
References: <ef3316a2-2623-4291-8f7c-1f713ec4cac4n@googlegroups.com> <u3goig$oiap$3@dont-email.me>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <16065f2a-2425-4da6-834c-ba1bb19a2237n@googlegroups.com>
Subject: Re: Using Apache2 as proxy to redirect traffic within LAN not working
as intended
From: giantvin...@gmail.com (Vincent “Giantvince1” Meadows)
Injection-Date: Wed, 10 May 2023 20:28:30 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 10353
 by: Vincent “Giantvinc - Wed, 10 May 2023 20:28 UTC

On Wednesday, May 10, 2023 at 1:44:38 PM UTC-5, Marco Moock wrote:
> Am 10.05.2023 um 09:34:04 Uhr schrieb Vincent “Giantvince1” Meadows:
>
> > In my case, when I have this set up in such a manner, it seems to
> > only proxy to one machine in particular, regardless of the fact that
> > the IP addresses in the proxy rules are pointing to the correct
> > machines in each "Server" block in the configs. Can someone please
> > help me figure this out? It's driving me nuts!
> Please post your configuration.

My entire config is below this line; I obfuscated my IPv6 for privacy reasons, my IPv4 addresses are actually private due to only having one public IPv4 and requiring NAT.
Also, as of right now, I have instigated my router to force IPv6 NAT so that I can avoid the problem for now, since it seems that forcing the router to ALWAYS pick 10.0.0.4 (and the associated IPv6 address) to pass traffic to makes things just *work*.

<VirtualHost *:80>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
</VirtualHost>

<VirtualHost *:443>
ServerName pihole.meadowsburklepcrepair.com
ServerAdmin vincent@villageofgamers.net
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
DocumentRoot /var/www/html/admin
<Directory "/var/www/html/admin">
DirectoryIndex index.php
<RequireAny>
Require ip 10.0.0.0/24
Require ip fd00::/64
</RequireAny>
</Directory>
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
</VirtualHost>

<VirtualHost *:443>
ServerName dynmap.villageofgamers.net
ServerAdmin vincent@villageofgamers.net
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
DocumentRoot /var/www/html/dynmap
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
</VirtualHost>

<VirtualHost *:443>
ServerName mail.maxxburkleservices.com
ServerAdmin vincent@maxxburkleservices.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Proxy *>
<RequireAll>
Require all granted
Require not ip 10.0.2.0/24
</RequireAll>
</Proxy>
SSLProxyEngine on
SSLProxyVerify none
ProxyPass / https://10.0.0.5/
ProxyPassReverse / https://10.0.0.5/
ProxyRequests off
ProxyPreserveHost on
RequestHeader set X-Forwarded-Proto https
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
</VirtualHost>

<VirtualHost *:443>
ServerName mail.meadowsburklepcrepair.com
ServerAdmin vincent@meadowsburklepcrepair.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Proxy *>
<RequireAll>
Require all granted
Require not ip 10.0.2.0/24
</RequireAll>
</Proxy>
SSLProxyEngine on
SSLProxyVerify none
ProxyPass / https://10.0.0.5/
ProxyPassReverse / https://10.0.0.5/
ProxyRequests off
ProxyPreserveHost on
RequestHeader set X-Forwarded-Proto https
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
</VirtualHost>

<VirtualHost *:443>
ServerName mail.villageofgamers.net
ServerAdmin vincent@villageofgamers.net
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Proxy *>
<RequireAll>
Require all granted
Require not ip 10.0.2.0/24
</RequireAll>
</Proxy>
SSLProxyEngine on
SSLProxyVerify none
ProxyPass / https://10.0.0.5/
ProxyPassReverse / https://10.0.0.5/
ProxyRequests off
ProxyPreserveHost on
RequestHeader set X-Forwarded-Proto https
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
</VirtualHost>

<VirtualHost *:443>
ServerName maxxburkleservices.com
ServerAdmin vincent@maxxburkleservices.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
DocumentRoot /var/www/html/redirects
DirectoryIndex index.php
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
</VirtualHost>

<VirtualHost *:443>
ServerName meadowsburklepcrepair.com
ServerAdmin vincent@meadowsburklepcrepair.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
DocumentRoot /var/www/html/redirects
DirectoryIndex index.php
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
</VirtualHost>

<VirtualHost *:443>
ServerName nextcloud.meadowsburklepcrepair.com
ServerAdmin vincent@meadowsburklepcrepair.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
</IfModule>
<Directory /var/www/html/nextcloud>
<RequireAll>
Require all granted
Require not ip 10.0.2.0/24
</RequireAll>
DirectoryIndex index.php
</Directory>
DocumentRoot /var/www/html/nextcloud
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
</VirtualHost>

<VirtualHost *:443>
ServerName radio.villageofgamers.net
ServerAdmin vincent@villageofgamers.net
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLProxyEngine on
SSLProxyVerify none
ProxyPass / https://127.0.0.1:8443/
ProxyPassReverse / https://127.0.0.1:8443/
ProxyRequests off
ProxyPreserveHost on
RequestHeader set X-Forwarded-Proto https
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
</VirtualHost>

<VirtualHost *:443>
ServerName support.meadowsburklepcrepair.com
ServerAdmin vincent@meadowsburklepcrepair.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Proxy *>
<RequireAll>
Require all granted
Require not ip 10.0.2.0/24
</RequireAll>
</Proxy>
SSLProxyEngine on
SSLProxyVerify none
ProxyPass / https://10.0.0.3/
ProxyPassReverse / https://10.0.0.3/
ProxyRequests off
ProxyPreserveHost on
RequestHeader set X-Forwarded-Proto https
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
</VirtualHost>

<VirtualHost *:443>
ServerName vaultwarden.meadowsburklepcrepair.com
ServerAdmin vincent@maxxburkleservices.com
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
<Proxy *>
<RequireAll>
Require all granted
Require not ip 10.0.2.0/24
</RequireAll>
</Proxy>
SSLProxyEngine on
SSLProxyVerify none
ProxyPass / https://10.0.0.3/
ProxyPassReverse / https://10.0.0.3/
ProxyRequests off
ProxyPreserveHost on
RequestHeader set X-Forwarded-Proto https
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
</VirtualHost>

<VirtualHost *:443>
ServerName villageofgamers.net
ServerAdmin vincent@villageofgamers.net
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
DocumentRoot /var/www/html/redirects
DirectoryIndex index.php
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
</VirtualHost>


Click here to read the complete article
Re: Using Apache2 as proxy to redirect traffic within LAN not working as intended

<e7581056-4e7e-40fb-a33f-7677d3f8724bn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=96&group=comp.infosystems.www.servers.unix#96

  copy link   Newsgroups: comp.infosystems.www.servers.unix
X-Received: by 2002:a05:620a:4612:b0:759:2dcd:bd9d with SMTP id br18-20020a05620a461200b007592dcdbd9dmr1358179qkb.9.1684043543864;
Sat, 13 May 2023 22:52:23 -0700 (PDT)
X-Received: by 2002:a25:2282:0:b0:ba2:da66:3d38 with SMTP id
i124-20020a252282000000b00ba2da663d38mr13147368ybi.1.1684043543386; Sat, 13
May 2023 22:52:23 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.infosystems.www.servers.unix
Date: Sat, 13 May 2023 22:52:23 -0700 (PDT)
In-Reply-To: <16065f2a-2425-4da6-834c-ba1bb19a2237n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2604:2d80:d293:1400:0:0:0:2;
posting-account=DimvNAoAAAAYk7MdTsIa3a6jvHV4nU8a
NNTP-Posting-Host: 2604:2d80:d293:1400:0:0:0:2
References: <ef3316a2-2623-4291-8f7c-1f713ec4cac4n@googlegroups.com>
<u3goig$oiap$3@dont-email.me> <16065f2a-2425-4da6-834c-ba1bb19a2237n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e7581056-4e7e-40fb-a33f-7677d3f8724bn@googlegroups.com>
Subject: Re: Using Apache2 as proxy to redirect traffic within LAN not working
as intended
From: giantvin...@gmail.com (Vincent “Giantvince1” Meadows)
Injection-Date: Sun, 14 May 2023 05:52:23 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 11845
 by: Vincent “Giantvinc - Sun, 14 May 2023 05:52 UTC

On Wednesday, May 10, 2023 at 3:28:31 PM UTC-5, Vincent Meadows wrote:
> On Wednesday, May 10, 2023 at 1:44:38 PM UTC-5, Marco Moock wrote:
> > Am 10.05.2023 um 09:34:04 Uhr schrieb Vincent “Giantvince1” Meadows:
> >
> > > In my case, when I have this set up in such a manner, it seems to
> > > only proxy to one machine in particular, regardless of the fact that
> > > the IP addresses in the proxy rules are pointing to the correct
> > > machines in each "Server" block in the configs. Can someone please
> > > help me figure this out? It's driving me nuts!
> > Please post your configuration.
> My entire config is below this line; I obfuscated my IPv6 for privacy reasons, my IPv4 addresses are actually private due to only having one public IPv4 and requiring NAT.
> Also, as of right now, I have instigated my router to force IPv6 NAT so that I can avoid the problem for now, since it seems that forcing the router to ALWAYS pick 10.0.0.4 (and the associated IPv6 address) to pass traffic to makes things just *work*.
>
> <VirtualHost *:80>
> RewriteEngine On
> RewriteCond %{HTTPS} !=on
> RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
> </VirtualHost>
>
> <VirtualHost *:443>
> ServerName pihole.meadowsburklepcrepair.com
> ServerAdmin vin...@villageofgamers.net
> ErrorLog ${APACHE_LOG_DIR}/error.log
> CustomLog ${APACHE_LOG_DIR}/access.log combined
> DocumentRoot /var/www/html/admin
> <Directory "/var/www/html/admin">
> DirectoryIndex index.php
> <RequireAny>
> Require ip 10.0.0.0/24
> Require ip fd00::/64
> </RequireAny>
> </Directory>
> Include /etc/letsencrypt/options-ssl-apache.conf
> SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
> SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
> </VirtualHost>
>
> <VirtualHost *:443>
> ServerName dynmap.villageofgamers.net
> ServerAdmin vin...@villageofgamers.net
> ErrorLog ${APACHE_LOG_DIR}/error.log
> CustomLog ${APACHE_LOG_DIR}/access.log combined
> DocumentRoot /var/www/html/dynmap
> Include /etc/letsencrypt/options-ssl-apache.conf
> SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
> SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
> </VirtualHost>
>
> <VirtualHost *:443>
> ServerName mail.maxxburkleservices.com
> ServerAdmin vin...@maxxburkleservices.com
> ErrorLog ${APACHE_LOG_DIR}/error.log
> CustomLog ${APACHE_LOG_DIR}/access.log combined
> <Proxy *>
> <RequireAll>
> Require all granted
> Require not ip 10.0.2.0/24
> </RequireAll>
> </Proxy>
> SSLProxyEngine on
> SSLProxyVerify none
> ProxyPass / https://10.0.0.5/
> ProxyPassReverse / https://10.0.0.5/
> ProxyRequests off
> ProxyPreserveHost on
> RequestHeader set X-Forwarded-Proto https
> Include /etc/letsencrypt/options-ssl-apache.conf
> SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
> SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
> </VirtualHost>
>
> <VirtualHost *:443>
> ServerName mail.meadowsburklepcrepair.com
> ServerAdmin vin...@meadowsburklepcrepair.com
> ErrorLog ${APACHE_LOG_DIR}/error.log
> CustomLog ${APACHE_LOG_DIR}/access.log combined
> <Proxy *>
> <RequireAll>
> Require all granted
> Require not ip 10.0.2.0/24
> </RequireAll>
> </Proxy>
> SSLProxyEngine on
> SSLProxyVerify none
> ProxyPass / https://10.0.0.5/
> ProxyPassReverse / https://10.0.0.5/
> ProxyRequests off
> ProxyPreserveHost on
> RequestHeader set X-Forwarded-Proto https
> Include /etc/letsencrypt/options-ssl-apache.conf
> SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
> SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
> </VirtualHost>
>
> <VirtualHost *:443>
> ServerName mail.villageofgamers.net
> ServerAdmin vin...@villageofgamers.net
> ErrorLog ${APACHE_LOG_DIR}/error.log
> CustomLog ${APACHE_LOG_DIR}/access.log combined
> <Proxy *>
> <RequireAll>
> Require all granted
> Require not ip 10.0.2.0/24
> </RequireAll>
> </Proxy>
> SSLProxyEngine on
> SSLProxyVerify none
> ProxyPass / https://10.0.0.5/
> ProxyPassReverse / https://10.0.0.5/
> ProxyRequests off
> ProxyPreserveHost on
> RequestHeader set X-Forwarded-Proto https
> Include /etc/letsencrypt/options-ssl-apache.conf
> SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
> SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
> </VirtualHost>
>
> <VirtualHost *:443>
> ServerName maxxburkleservices.com
> ServerAdmin vin...@maxxburkleservices.com
> ErrorLog ${APACHE_LOG_DIR}/error.log
> CustomLog ${APACHE_LOG_DIR}/access.log combined
> DocumentRoot /var/www/html/redirects
> DirectoryIndex index.php
> Include /etc/letsencrypt/options-ssl-apache.conf
> SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
> SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
> </VirtualHost>
>
> <VirtualHost *:443>
> ServerName meadowsburklepcrepair.com
> ServerAdmin vin...@meadowsburklepcrepair.com
> ErrorLog ${APACHE_LOG_DIR}/error.log
> CustomLog ${APACHE_LOG_DIR}/access.log combined
> DocumentRoot /var/www/html/redirects
> DirectoryIndex index.php
> Include /etc/letsencrypt/options-ssl-apache.conf
> SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
> SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
> </VirtualHost>
>
> <VirtualHost *:443>
> ServerName nextcloud.meadowsburklepcrepair.com
> ServerAdmin vin...@meadowsburklepcrepair.com
> ErrorLog ${APACHE_LOG_DIR}/error.log
> CustomLog ${APACHE_LOG_DIR}/access.log combined
> <IfModule mod_headers.c>
> Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
> </IfModule>
> <Directory /var/www/html/nextcloud>
> <RequireAll>
> Require all granted
> Require not ip 10.0.2.0/24
> </RequireAll>
> DirectoryIndex index.php
> </Directory>
> DocumentRoot /var/www/html/nextcloud
> Include /etc/letsencrypt/options-ssl-apache.conf
> SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
> SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
> </VirtualHost>
>
> <VirtualHost *:443>
> ServerName radio.villageofgamers.net
> ServerAdmin vin...@villageofgamers.net
> ErrorLog ${APACHE_LOG_DIR}/error.log
> CustomLog ${APACHE_LOG_DIR}/access.log combined
> SSLProxyEngine on
> SSLProxyVerify none
> ProxyPass / https://127.0.0.1:8443/
> ProxyPassReverse / https://127.0.0.1:8443/
> ProxyRequests off
> ProxyPreserveHost on
> RequestHeader set X-Forwarded-Proto https
> Include /etc/letsencrypt/options-ssl-apache.conf
> SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
> SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
> </VirtualHost>
>
> <VirtualHost *:443>
> ServerName support.meadowsburklepcrepair.com
> ServerAdmin vin...@meadowsburklepcrepair.com
> ErrorLog ${APACHE_LOG_DIR}/error.log
> CustomLog ${APACHE_LOG_DIR}/access.log combined
> <Proxy *>
> <RequireAll>
> Require all granted
> Require not ip 10.0.2.0/24
> </RequireAll>
> </Proxy>
> SSLProxyEngine on
> SSLProxyVerify none
> ProxyPass / https://10.0.0.3/
> ProxyPassReverse / https://10.0.0.3/
> ProxyRequests off
> ProxyPreserveHost on
> RequestHeader set X-Forwarded-Proto https
> Include /etc/letsencrypt/options-ssl-apache.conf
> SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
> SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
> </VirtualHost>
>
> <VirtualHost *:443>
> ServerName vaultwarden.meadowsburklepcrepair.com
> ServerAdmin vin...@maxxburkleservices.com
> ErrorLog ${APACHE_LOG_DIR}/error.log
> CustomLog ${APACHE_LOG_DIR}/access.log combined
> <Proxy *>
> <RequireAll>
> Require all granted
> Require not ip 10.0.2.0/24
> </RequireAll>
> </Proxy>
> SSLProxyEngine on
> SSLProxyVerify none
> ProxyPass / https://10.0.0.3/
> ProxyPassReverse / https://10.0.0.3/
> ProxyRequests off
> ProxyPreserveHost on
> RequestHeader set X-Forwarded-Proto https
> Include /etc/letsencrypt/options-ssl-apache.conf
> SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
> SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
> </VirtualHost>
>
> <VirtualHost *:443>
> ServerName villageofgamers.net
> ServerAdmin vin...@villageofgamers.net
> ErrorLog ${APACHE_LOG_DIR}/error.log
> CustomLog ${APACHE_LOG_DIR}/access.log combined
> DocumentRoot /var/www/html/redirects
> DirectoryIndex index.php
> Include /etc/letsencrypt/options-ssl-apache.conf
> SSLCertificateFile /etc/letsencrypt/live/meadowsburklepcrepair.com/fullchain.pem
> SSLCertificateKeyFile /etc/letsencrypt/live/meadowsburklepcrepair.com/privkey.pem
> </VirtualHost>


Click here to read the complete article
1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor