Legacy web applications behind Apache reverse proxy: TLS and migration

A reverse proxy can provide a maintained public TLS endpoint while an older application is being migrated. It does not patch the backend, remove application vulnerabilities or prove that the whole system meets a security standard.

Reviewed: 28 October 2026. This replaces the historical Red Hat 5 / Oracle Linux 7 recipe at the same URL. The previous broad proxy and disabled certificate checks are not a current deployment example. Start with supported components and an explicit migration plan.

There are two separate connections

Review both browser-to-proxy and proxy-to-backend transport. A good public certificate says nothing about the security of the second connection. Select protocols and ciphers appropriate to the supported software and actual clients, and verify the result rather than copying an old cipher string.

If the backend cannot provide the required transport, do not quietly disable validation or claim that the public endpoint fixed the entire system. Record the limitation, restrict exposure and plan remediation.

Use a reverse proxy without opening a forward proxy

Apache’s ProxyRequests controls forward proxying. Keep it disabled for this reverse-proxy design. Define only the intended destination; do not publish an unrestricted generic proxy.

The following is a configuration fragment for a reviewed TLS virtual host on a supported Apache 2.4 system. It is not a complete server configuration and is not intended to connect to an unmodified legacy server:

Replace the example hostname and CA path. The backend must be reachable by that name and present a valid certificate for it, with a trusted chain. Check the required modules, permissions, certificate chain and verification depth for the actual deployment. The public virtual host still needs its own certificate and TLS configuration.

Constrain access and preserve application behavior

The backend should accept only the required application traffic from the intended proxy path, while retaining controlled administrative access. Review this against the actual network, including any alternative interfaces. Do not paste a blanket firewall replacement that might remove unrelated restrictions or lock out administrators.

Test login, cookies, redirects, generated links, uploads and integrations through the proxy. A successful home page request is insufficient. Only trust forwarded client metadata from the proxy that you control.

Prepare and verify the change

Back up the relevant configuration and keep a working administrative connection. Test on a separate environment, check configuration syntax using the tools supplied by the distribution and perform a controlled reload only after validation. Keep a specific rollback plan.

Inspect the certificate and hostname checks on the backend connection, test the public endpoint and confirm that unintended clients cannot bypass the reviewed route. This TLS certificate guide explains certificate checks separately from HTTP response dates.

Use the bridge as part of a migration plan

List the application dependencies, data to transfer, responsible owner and target supported environment. Rehearse restoration and migration on a protected copy. Define how new data will be reconciled during cutover and how the business functions will be checked afterward.

If you need help reviewing an old application or its proxy setup, contact Soban with the symptoms and existing architecture. Do not send private keys or passwords in the first message.

Sources