help with reverse proxy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greetings,

Running:
dpkg -l apache2 | grep ii
ii  apache2        2.4.48-3.1+deb11u1 amd64        Apache HTTP Server

I am trying to configure a reverse proxy and am following the config file:

/etc/apache2/mods-available/proxy_html.conf

and the website:

http://www.apachetutor.org/admin/reverseproxies

I have a rust web server running locally (127.0.0.1:5050) and am
attempting to serve it via /polaris/

here are my configs:

<VirtualHost *:80>
    AllowEncodedSlashes NoDecode

    LogLevel Debug
    ProxyRequests Off
    ProxyPass        /polaris/ http://127.0.0.1:5050/
    <Location /polaris/>
        ProxyPassReverse /
        ProxyHTMLEnable On
        ProxyHTMLURLMap http://127.0.0.1:5050/ /polaris/
        ProxyHTMLURLMap / /polaris/
    </Location>
</VirtualHost>

 but am getting the following error in my web browser:

"""
Content Encoding Error

The page you are trying to view cannot be shown because it uses an
invalid or unsupported form of compression
"""

Looking at the logs I see:

[Tue Oct 05 10:22:11.247273 2021] [proxy:debug] [pid 7175]
mod_proxy.c(1258): [client 192.168.0.47:42900] AH01143: Running scheme
http handler (attempt 0)
[Tue Oct 05 10:22:11.247302 2021] [proxy:debug] [pid 7175]
proxy_util.c(2438): AH00942: http: has acquired connection for
(127.0.0.1)
[Tue Oct 05 10:22:11.247313 2021] [proxy:debug] [pid 7175]
proxy_util.c(2494): [client 192.168.0.47:42900] AH00944: connecting
http://127.0.0.1:5050/ to 127.0.0.1:5050
[Tue Oct 05 10:22:11.247487 2021] [proxy:debug] [pid 7175]
proxy_util.c(2717): [client 192.168.0.47:42900] AH00947: connected /
to 127.0.0.1:5050
[Tue Oct 05 10:22:11.247631 2021] [proxy:debug] [pid 7175]
proxy_util.c(3183): AH02824: http: connection established with
127.0.0.1:5050 (127.0.0.1)
[Tue Oct 05 10:22:11.247658 2021] [proxy:debug] [pid 7175]
proxy_util.c(3369): AH00962: http: connection complete to
127.0.0.1:5050 (127.0.0.1)
[Tue Oct 05 10:22:11.248442 2021] [proxy:debug] [pid 7175]
proxy_util.c(2453): AH00943: http: has released connection for
(127.0.0.1)
[Tue Oct 05 10:22:11.248477 2021] [xml2enc:debug] [pid 7175]
mod_xml2enc.c(195): [client 192.168.0.47:42900] AH01430: Content-Type
is text/html
[Tue Oct 05 10:22:11.248504 2021] [xml2enc:debug] [pid 7175]
mod_xml2enc.c(269): [client 192.168.0.47:42900] AH01434: Charset
ISO-8859-1 not supported by libxml2; trying apr_xlate
[Tue Oct 05 10:22:11.248735 2021] [xml2enc:debug] [pid 7175]
mod_xml2enc.c(483): [client 192.168.0.47:42900] AH01439: xml2enc:
consuming 10 bytes from bucket
[Tue Oct 05 10:22:11.248753 2021] [xml2enc:debug] [pid 7175]
mod_xml2enc.c(509): [client 192.168.0.47:42900] AH01441: xml2enc:
converted 10/12 bytes
[Tue Oct 05 10:22:11.248760 2021] [xml2enc:debug] [pid 7175]
mod_xml2enc.c(483): [client 192.168.0.47:42900] AH01439: xml2enc:
consuming 270 bytes from bucket
[Tue Oct 05 10:22:11.248770 2021] [xml2enc:debug] [pid 7175]
mod_xml2enc.c(509): [client 192.168.0.47:42900] AH01441: xml2enc:
converted 182/280 bytes
[Tue Oct 05 10:22:11.248777 2021] [xml2enc:debug] [pid 7175]
mod_xml2enc.c(509): [client 192.168.0.47:42900] AH01441: xml2enc:
converted 88/133 bytes

it sort of looks like I'm generating a loop, but I'm unaware of where
to fix the issue.

Any suggestions for what to do or next steps?

Thanks for the help!

-m

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux