HTTPS port
Let's consider a scenario where we are serving a website or a few pages on a website over an encrypted secure connection using secure HTTP or HTTPS. We can outsource the encryption and decryption work to the Squid proxy server, which can handle HTTPS requests. So, when we configure Squid to accept HTTPS connections or requests, it'll decrypt the requests and forward the unencrypted requests to the web server.
Note
Please note that we should use the --enable-ssl
option with the configure
program before compiling, if we want Squid to accept HTTPS requests. Also note that several operating systems don't provide packages capable of HTTPS reverse-proxy due to GPL and policy constraints.
HTTPS options in reverse proxy mode
Let's have a look at the syntax for the https_port
directive.
https_port [IP_ADDRESS:]port accel cert=certificate.pem [key=key.pem] [options]
In the preceding configuration line, the IP_ADDRESS
to which Squid will bind to can be optionally specified. The option port
determines...