New answers tagged

0

I'd suggest using a more up to date solution to this problem. In Startup.cs, configure the ForwardedHeaders middleware to use the X-Forwarded-Proto header provided by the load balancer: app.UseForwardedHeaders(new ForwardedHeadersOptions { ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedHost | ForwardedHeaders....


0

This isn't so hard. Basically, using the regex portion of SetEnvIf to extract the string, and use that to set the environment SetEnvIf thing ^(.*)$ X_THING=$1


0

If you are only interested in the header then you can use the %{VARNAME}o variable. See: https://httpd.apache.org/docs/current/mod/mod_log_config.html#page-header for the documentation.


Top 50 recent answers are included