Skip to content

apache: fix serving static files directly

The REQUEST_FILENAME is an absolute name already and doesn't need the DOCUMENT_ROOT prefix.

Tested on Gitlab 11-4-stable. With document root prepended workhorse serves the static file, without it does not appear in the workhorse logs. (so is served by apache) (cache disabled and such)

Note that the previous version is not broken, but the static files are served by gitlab workhorse, unlike indicated by the comment.

Edited by Wayne Haber

Merge request reports