+

Shortlog

Date Author Message Actions
13-08-22 09:57 Benjamin Renard Initial commitmaster commitdiff tree tar/gz zip patch

more »

Tags

Date Tag Actions

View all tags

Heads

Date Branch Actions
13-08-22 09:57 master

Project informations

Description
ViewGit DirectDownload plugin
Last Change
13-08-22 09:57
URL
  • http://git.zionetrix.net/git/viewgit-directdownload-plugin
  • git@git.zionetrix.net:public_git/viewgit-directdownload-plugin
README
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
ViewGit