Getting transport and host from httpaf

I’d like to redirect HTTPS to HTTP and point multiple domains at the same server and host different content on them.

When I’m serving pages using httpaf, how can i tell what transport (i.e. HTTP or HTTPS) was used and which domain (host) I’m serving?

From httpaf’s point of view, it shouldn’t matter. The SSL termination and SNI stuff should be done by a reverse proxy like Nginx: NGINX Docs | NGINX SSL Termination

1 Like