{"id":372,"date":"2024-11-21T23:48:57","date_gmt":"2024-11-21T23:48:57","guid":{"rendered":"https:\/\/wp.sheepchen.net\/?p=372"},"modified":"2025-04-13T22:40:39","modified_gmt":"2025-04-13T22:40:39","slug":"gitlab-edit-single-file-not-working-for-files-in-subdirs-behind-proxy","status":"publish","type":"post","link":"https:\/\/wp.sheepchen.net\/?p=372","title":{"rendered":"gitlab &#8216;edit single file&#8217; not working for files in subdirs (behind proxy)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If you use gitlab behind an apache proxy and can&#8217;t edit files that are in subdirs with the &#8220;Edit > edit single file&#8221; button (just loading circle) &#8211; here is the Problem: this happends because the proxy translates the &#8216;%2F&#8217; in the URL paths!<br>You have to add &#8220;AllowEncodedSlashes NoDecode&#8221; to your proxy. here is a valid configuration:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Apache HTTP:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Allow encoded slashes\nAllowEncodedSlashes NoDecode\n\n# Redirect all HTTP traffic to HTTPS\nRedirect permanent \/ https:\/\/this-target\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Apache HTTPS:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Proxy settings\nProxyPreserveHost On\n\n# Allow encoded slashes\nAllowEncodedSlashes NoDecode\n\n# Proxy configuration\nProxyPass \/ http:\/\/gitlab-target:80\/ nocanon\nProxyPassReverse \/ http:\/\/gitlab-target:80\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you use gitlab behind an apache proxy and can&#8217;t edit files that are in subdirs with the &#8220;Edit > edit single file&#8221; button (just loading circle) &#8211; here is the Problem: this happends because the proxy translates the &#8216;%2F&#8217; in the URL paths!You have to add &#8220;AllowEncodedSlashes NoDecode&#8221; to your proxy. here is a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[16],"tags":[],"class_list":["post-372","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=\/wp\/v2\/posts\/372","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=372"}],"version-history":[{"count":3,"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=\/wp\/v2\/posts\/372\/revisions"}],"predecessor-version":[{"id":375,"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=\/wp\/v2\/posts\/372\/revisions\/375"}],"wp:attachment":[{"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=372"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=372"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.sheepchen.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=372"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}