Changeset 26576
- Timestamp:
- 2012-12-12T14:56:32+13:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/WEB-INF/web.xml
r26517 r26576 409 409 </mime-mapping> 410 410 411 <!-- Deny access to contents of URL pattern /usersDB/* 412 It appears the url pattern has to be relative to the web directory (a url-pattern of /usersDB/* is insufficient), so this may need to be done for all sites. 411 <!-- Deny access to contents of URL pattern /logs/*, although greenstone.log is the important one. It appears the url pattern has to be relative to the web directory. 413 412 http://stackoverflow.com/questions/5333266/tomcat-deny-access-to-specific-files 414 413 and http://www.coderanch.com/t/84442/Tomcat/write-correct-url-pattern-security --> 415 414 <security-constraint> 416 415 <web-resource-collection> 417 <web-resource-name>usersDB files</web-resource-name> 418 <description>No direct access to usersDB files.</description> 419 <url-pattern>/sites/localsite/etc/usersDB/*</url-pattern> 420 <!--<url-pattern>/usersDB/*</url-pattern>--> 416 <web-resource-name>log files</web-resource-name> 417 <description>No direct access to greenstone's logs.</description> 418 <url-pattern>/logs/*</url-pattern> 421 419 <http-method>POST</http-method> 422 420 <http-method>GET</http-method> 423 421 </web-resource-collection> 424 422 <auth-constraint> 425 <description>No direct browser access to usersDBfiles.</description>423 <description>No direct browser access to log files.</description> 426 424 <role-name>NobodyHasThisRole</role-name> 427 425 </auth-constraint>
Note:
See TracChangeset
for help on using the changeset viewer.