As discussed in the forum, I am creating this issue to track the progress of the following discussion: https://caddy.community/t/file-server-httpinclude-with-x-forwarded-for/21087
TL;DR:
Goal: Allow the virtual request of httpInclude of a file_server to include a RemoteAddr so that a reverse proxy can set X-Forwarded-For.
Otherwise, the X-Forwarded-For header is not set and not included in the endpoint that processes the original httpInclude request, which is required for applications that trust this header and return different text data depending on its value.
As discussed in the forum, I am creating this issue to track the progress of the following discussion: https://caddy.community/t/file-server-httpinclude-with-x-forwarded-for/21087
TL;DR:
Goal: Allow the virtual request of
httpIncludeof afile_serverto include aRemoteAddrso that a reverse proxy can setX-Forwarded-For.Otherwise, the
X-Forwarded-Forheader is not set and not included in the endpoint that processes the originalhttpIncluderequest, which is required for applications that trust this header and return different text data depending on its value.