Apache vs Lighttpd: Weird behavior in reverse proxy mode.
- by northox
Context: I have an Apache server running in reverse proxy mode in front of a Tomcat java server. It handle HTTP and HTTPS and send those request back and forth to the Tomcat server on an internal HTTP port.
Goal: I'm trying to replace the reverse proxy with Lighttpd.
Problem: while asking for the same HTTPS url, while using Apache as the reverse proxy, the Tomcat server redirect (302) to an HTTPS page but with Lighttpd it redirect to the same page in HTTP (not HTTPS).
Question: What does Lighttpd could do different in order to have a different result from the backend server? In theory, using Apache or Lighttpd server as a reverse proxy should not change anything... but it does.
Any idea? I'll try to find something by sniffing the traffic on the backend tomcat server.