RE: httpd 2.2.15-59 Reverse Proxy " proxy: Error reading from remote server returned by /"

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

 



What happens if you try to access http://10.0.0.130/ from your dektop computer inside the LAN

Type it exactly like that with a / (slash) at the end. If you can access it , check if your proxy has access to your printer’s IP maybe a firewall or something is in the way.

 

 

From: david@xxxxxxxxx [mailto:david@xxxxxxxxx]
Sent: Thursday, April 13, 2017 2:11 PM
To: users@xxxxxxxxxxxxxxxx
Subject: httpd 2.2.15-59 Reverse Proxy " proxy: Error reading from remote server returned by /"

 

Hello all.

I want to use apache as a reverse proxy for an internel IIS site. I was unable to Setup Reverse proxy, so, for testing purposes, my internal site is a network printer web page.

My Setup:

 

Internet -> Internet Ip address ----------------------à printer web server

                               (dns website)

                               (dns website-for-internal)

 

My apache webserver is configured with 2 virtual hosts, one for the site itself, the other for the internal website.

When accessing website-for-internal, the apache logs show “proxy: Error Reading from remote server returned by/”

 

Httpd.conf

 

<VirtualHost my.internet.ip:80>

        ServerName website

        DocumentRoot /var/www/html/

        DirectoryIndex index.php

</VirtualHost>

 

<VirtualHost my.internet.ip:80>

        ServerName website-for-internal

        ProxyRequests Off

        ProxyPreserveHost on

        ProxyPass        / http://10.0.0.130/

        ProxyPassReverse / http://10.0.0.130/

</VirtualHost>

 

At this point I’ve even tried to Setup the reverse proxy without using a virtual host but I get the same result.

Also with  different settings with the Proxy configuration (retry=0, Keepalive=on, connectiontimeout=5,  timeout=30, etc,etc)

 

wireshark shows incoming and outgoing traffic for the internal Ip adress.

 

Browser error:

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /.

Reason: Error reading from remote server

Any ideas please?

Thanks and regards

 

 

 

 

Os melhores cumprimentos
David Alexandre M. de Carvalho
---------------------------------------
Especialista de Informática
Departamento de Informática
Universidade da Beira Interior

 


[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