If you use gitlab behind an apache proxy and can’t edit files that are in subdirs with the “Edit > edit single file” button (just loading circle) – here is the Problem: this happends because the proxy translates the ‘%2F’ in the URL paths!
You have to add “AllowEncodedSlashes NoDecode” to your proxy. here is a valid configuration:
Apache HTTP:
# Allow encoded slashes
AllowEncodedSlashes NoDecode
# Redirect all HTTP traffic to HTTPS
Redirect permanent / https://this-target/
Apache HTTPS:
# Proxy settings
ProxyPreserveHost On
# Allow encoded slashes
AllowEncodedSlashes NoDecode
# Proxy configuration
ProxyPass / http://gitlab-target:80/ nocanon
ProxyPassReverse / http://gitlab-target:80/