{"thread":{"id":"34636","subject":"gitweb, How to script alias to a directory? for cloning over http","startedAt":"2013-08-07T23:11:52Z","lastAt":"2013-08-07T23:11:52Z","messageCount":1,"participants":["Tyrone Lucero"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"224771","messageId":"CAOxYNk+R97KQc0G-=_KPT==gmpKn=Yv9Awpzfq29kx=A7Zv+Rw@mail.gmail.com","threadId":"34636","inReplyTo":null,"subject":"gitweb, How to script alias to a directory? for cloning over http","fromName":"Tyrone Lucero","fromEmail":"tyrone.lucero@gmail.com","sentAt":"2013-08-07T23:11:52Z","receivedAt":"2013-08-07T23:11:52Z","isPatch":false,"sender":{"key":"tyrone.lucero@gmail.com","avatar":null},"body":"Hello, I need some guide that can  explain me the following:\n\nI wish to know the correct rule to make work cloning over http with my\nconfiguration, without taking all the web server to server only as\ngithub\n\nI setup  gitweb to it can show in a directory\nby example, localhost/gitweb or 192.168.1.20/gitweb ; and works fine,\nincluding rewrite rule\n\n\n\nConfig file under conf.d from apache config files:\n\n\nAlias /gitweb /usr/share/gitweb\n\nSetEnv GITWEB_CONFIG /etc/gitweb.conf\nSetEnv GIT_PROJECT_ROOT /var/git\nSetEnv GIT_HTTP_EXPORT_ALL\n\n<Directory /usr/share/gitweb>\n  Options ExecCGI FollowSymLinks Indexes\n  AddHandler cgi-script .cgi\n  Allow from all\n  Order allow,deny\n  DirectoryIndex index.cgi\n  # Pretty gitweb URLs need rewrite engine on an enabled\n  RewriteEngine on\n  # rule condition indicates get filenames\n  RewriteCond %{REQUEST_FILENAME} !-f\n  # rule condition indicates get listing directories\n  RewriteCond %{REQUEST_FILENAME} !-d\n  # rule condition to show pretty short urls\n  RewriteRule ^.* /gitweb/gitweb.cgi/$0 [L,PT]\n</Directory>\n\n--\nFénix\n"}]}