gPass/resources/apache2_gpass.conf

30 lines
784 B
Plaintext

<VirtualHost *:80>
ServerName gpass-demo.soutade.fr
DocumentRoot /var/www/gpass
DirectoryIndex index.php
<Location />
AuthType Basic
AuthName "Private"
AuthUserFile /private/_pwd/user
Options +FollowSymlinks
# Uncomment to remove password for internal network
# <RequireAny>
# Require ip 192.168.0.0/24
Require valid-user
# </RequireAny>
</Location>
<Location "/users/">
Options +FollowSymlinks
Allow from all
Satisfy Any
</Location>
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !index.php
RewriteRule ^/(.*)$ /users/$1/index.php [PT]
</VirtualHost>