24 lines
541 B
Plaintext
24 lines
541 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
|
|
Require valid-user
|
|
</Location>
|
|
|
|
<Location "/users/">
|
|
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> |