packages/ssoinabox-webui/root/usr/local/share/ssoinabox/htdocs/.htaccess
changeset 0 3906ca745819
child 3 a044870a9d3d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/packages/ssoinabox-webui/root/usr/local/share/ssoinabox/htdocs/.htaccess	Tue Jan 08 23:13:29 2013 -0500
@@ -0,0 +1,15 @@
+#AuthType Basic
+#AuthName "Accounts"
+#AuthUserFile /usr/local/share/ssoinabox/htdocs/.htpasswd
+AuthType WebAuth
+AuthDBMGroupFile /etc/apache2/ldap-groups
+Require group rtp
+
+<FilesMatch "^logout(\.php)?$">
+	Require valid-user
+</FilesMatch>
+
+RewriteEngine on
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME}.php -f
+	RewriteRule ^([^/]*)(/.*)?$ $1.php$2 [L,QSA]