On 24/08/17 08:39, Petr Nemecek wrote:
> Hello,
> 
> I have a Tomcat behind IIS, and I get the 502: Bad Gateway error for long 
> running requests.
> 
> After some experiments I've found out, that if I use connector 8082 (see 
> below), I have this problem, but when I switch to 8084 (see below), the 
> problem disappears. The only difference is that proxyName, proxyPort and 
> scheme are set in the first connector.
> 
> Obviously I need both, to have those set and to serve the log running 
> requests without error... Any idea?

Those attributes won't make the slightest difference.

Tomcat has no control over how long IIS gives a request to complete
before deciding to return a 502. You should look at your IIS / ISAPI
configuration.

Mark

> 
> Many thanks,
>  Petr Nemecek
> 
> <Connector port="8082" protocol="HTTP/1.1"
>                connectionTimeout="20000"
>                redirectPort="8444"
>                URIEncoding="UTF-8"
>                proxyName="www.xyz.eu"
>                proxyPort="80"
>                scheme="http" />
>     
> <Connector port="8084" protocol="HTTP/1.1"
>                connectionTimeout="20000"
>                redirectPort="8444"
>                URIEncoding="UTF-8" />
> 
> 
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to