gPass

gPass Git Source Tree

Root/resources/apache2_gpass.conf

1<VirtualHost *:80>
2ServerName gpass-demo.soutade.fr
3
4DocumentRoot /var/www/gpass
5DirectoryIndex index.php
6
7<Location />
8 AuthType Basic
9 AuthName "Private"
10 AuthUserFile /private/_pwd/user
11 Require valid-user
12</Location>
13
14<Location "/users/">
15 Allow from all
16 Satisfy Any
17</Location>
18
19RewriteEngine On
20RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
21RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
22RewriteCond %{REQUEST_FILENAME} !index.php
23RewriteRule ^/(.*)$ /users/$1/index.php [PT]
24</VirtualHost>

Archive Download this file