Benjamin Renard
Initial commit
Benjamin Renard commited 14aad03 at 2013-08-22 09:57:43
DirectDownload plugin for ViewGit
=================================
This plugin permit direct download of project's files using URL like :
http://my.viewgit.com/?a=directdownload&p=myproject&h=HEAD&f=path/to/my/poject/file
Install
-------
Put directdownload directory in plugins directory
Configure rewrite for nicer URL
-------------------------------
To have nicer URL, you could configure your apache with mod_rewrite.
Add this following line in .htaccess file :
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^download/([^/]+)/(.+)$ /index.php?a=directdownload&p=$1&h=HEAD&f=$2 [QSA,L]
You could now access to direct download feature with URL like :
http://my.viewgit.com/download/myproject/path/to/my/poject/file
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX