Project

General

Profile

[Solved] Rewriting HOST to drop :443

Added by mechjagger over 8 years ago

Have a need to drop the :443 from being included on the host field. Application does run on 443 but the port is being forced into the host field rather than relying on protocol.

https://domain.com:443

Haven't figured out how to rewrite $HTTP["host"], any suggestions?


Replies (1)

RE: [Solved] Rewriting HOST to drop :443 - Added by gstrauss almost 7 years ago

The upcoming release of lighttpd 1.4.46 canonicalizes Host and will remove :443 if https.
This canonicalization will occur unless disabled with server.http-parseopt-host-normalize

    (1-1/1)