]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/lib-httpd/apache.conf
Merge branch 'gc/http-with-non-ascii-username-url'
[thirdparty/git.git] / t / lib-httpd / apache.conf
index b40e43bb311dd6f5088c0eb2ea8d1e67214f130f..0a4cdfa93ece7d8a4177835b5569583c22303564 100644 (file)
@@ -17,6 +17,9 @@ ErrorLog error.log
 <IfModule !mod_env.c>
        LoadModule env_module modules/mod_env.so
 </IfModule>
+<IfModule !mod_rewrite.c>
+       LoadModule rewrite_module modules/mod_rewrite.so
+</IFModule>
 <IfModule !mod_version.c>
        LoadModule version_module modules/mod_version.so
 </IfModule>
@@ -58,6 +61,10 @@ ScriptAlias /smart_noexport/ ${GIT_EXEC_PATH}/git-http-backend/
        Options ExecCGI
 </Files>
 
+RewriteEngine on
+RewriteRule ^/smart-redir-perm/(.*)$ /smart/$1 [R=301]
+RewriteRule ^/smart-redir-temp/(.*)$ /smart/$1 [R=302]
+
 <IfDefine SSL>
 LoadModule ssl_module modules/mod_ssl.so