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: da...@di.ubi.pt [mailto:da...@di.ubi.pt] 
Sent: Thursday, April 13, 2017 2:11 PM
To: users@httpd.apache.org
Subject: [users@httpd] 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 <http://teste.di.ubi.pt/>  /.

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

 

Reply via email to