|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
directorymatch
I really need help on this one.
I would like to restrict access to various directorys named "paperwork", anything that matches http://127.1/*paperwork*/*. I supose I should use: <directorymatch _?_> order deny,allow deny from all </DirectoryMatch> But I'm a newbie and I can't find out what is the expression I should use where is the _?_. Can anyone help me? SOrry for the lousy english. Best Regards, Simao Mata simao@bliter.com |
|
#2
|
|||
|
|||
|
>> anything that matches http://127.1/*paperwork*/*
You need to redesign your docroot layout. Matching anythingpaperworkanything is very inefficient. <DirectoryMatch ".*paperwork.*"> >> order deny,allow >> deny from all This doesn't do any good and you are denying access to yourself as well. Try something like this: <DirectoryMatch ".*paperwork.*"> Options Indexes FollowSymLinks AllowOverride All Order deny,allow Deny from all Allow from 12.34.56.78 192.168.0.0/24 AuthType Basic AuthName "Private Paperwork" AuthUserFile /server/path/to/nondocroot/.htpasswd Require valid-user Satisfy any </DirectoryMatch> |
|
#3
|
|||
|
|||
|
|
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > directorymatch |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|