git-svn-id: file:///svn-source/pmgr/branches/v0.3_work@1030 97e9348a-65ac-dc4b-aefc-98561f571b83
21 lines
545 B
ApacheConf
21 lines
545 B
ApacheConf
<IfModule mod_rewrite.c>
|
|
RewriteEngine on
|
|
|
|
RewriteRule ^$ webroot/ [L]
|
|
|
|
# Need this prevent a 400 error without trailing /
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteRule (.*) webroot/$1 [L]
|
|
|
|
</IfModule>
|
|
|
|
# Need to make sure directories can't be listed, since the rewrite
|
|
# rule excludes rewriting when an actual directory is requested
|
|
Options -Indexes
|
|
|
|
# Provide a mechanism for user authentication
|
|
AuthType Basic
|
|
AuthName "Valley Storage"
|
|
AuthUserFile "/home/perki2/valley_storage.pmgr.htpasswd"
|
|
Require valid-user
|