I want to set the path of cgit config (CGIT_CONFIG) in a directory with SetEnv.
But it seems that cgit can't find this env variable. My .htaccess is as follow:
Options +ExecCGI +Indexes +FollowSymLinks
#DirectoryIndex cgit.cgi I named cgit as index.cgi
SetEnv "CGIT_CONFIG" "/home/user_253/etc/cgitrc"
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /index.cgi/$1 [END,QSA]
RewriteCond %{QUERY_STRING} service=git-receive-pack
RewriteRule .* - [END,F]
Of course, I haven't access to main Apache config file...