Merge in the hosted_migration_20130215 branch to the v0.3_work branch
git-svn-id: file:///svn-source/pmgr/branches/v0.3_work@1030 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -1,25 +1,20 @@
|
||||
<IfModule mod_rewrite.c>
|
||||
RewriteEngine on
|
||||
RewriteRule ^$ webroot/ [L]
|
||||
RewriteRule (.*) webroot/$1 [L]
|
||||
RewriteEngine on
|
||||
|
||||
RewriteRule ^$ webroot/ [L]
|
||||
|
||||
# Need this prevent a 400 error without trailing /
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule (.*) webroot/$1 [L]
|
||||
|
||||
</IfModule>
|
||||
|
||||
# Lets deny everyone -- its a clean slate!
|
||||
order deny,allow
|
||||
deny from all
|
||||
|
||||
# Now allow local access
|
||||
# Localhost
|
||||
# allow from 127.0.0
|
||||
# Local subnet
|
||||
# allow from 192.168.7
|
||||
# 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 Digest
|
||||
AuthName "Property Manager"
|
||||
AuthUserFile "D:/Website/auth/pmgr.htpasswd"
|
||||
AuthType Basic
|
||||
AuthName "Valley Storage"
|
||||
AuthUserFile "/home/perki2/valley_storage.pmgr.htpasswd"
|
||||
Require valid-user
|
||||
|
||||
# Instead of satisfy all (too restrictive)
|
||||
# This allows EITHER local domain OR authenticated user
|
||||
satisfy any
|
||||
|
||||
Reference in New Issue
Block a user