Download Apache Benchmark for Unix - Secure Configuration Benchmarks
Transcript
The Center for Internet Security Apache Benchmark for Unix Adding password for user test Within the httpd.conf file, add an entry to protect the desired content: <Directory /var/www/html/protected> AuthType Basic AuthName "Private Access" AuthUserFile /path/to/passwordfile Require user test </Directory> Digest Authentication: # htdigest -c /path/to/digestfile “Private Access” test New password: password Re-type new password: password Adding password for user test Within the httpd.conf file, add an entry to protect the desired content: <Directory /var/www/html/protected> AuthType Digest AuthName "Private Access" AuthDigestFile /path/to/digestfile Require user test </Directory> Back to Top ^ L1 15. Directory Functionality/Features Directives Description The Options Directive controls what extended web server functions are applied to directories and/or files. • The All setting states that all features are available except for Multiviews. • The ExecCGI setting permits the execution of CGI scripts within the directory. This feature should only be applied to the designated cg-bin directory. • The FollowSymLinks setting allows the server to follow symbolic links found in the directory. The FollowSymlinks directive will instruct the Apache web server on how to handle the processing of files, which are symbolic links. If you must use symbolic links for the functionality of your web site, consider the security risks that follow. It is possible for an attacker to gain access to areas outside the specified document root if the web server is configured to follow symbolic links. We will configure this parameter setting to NOT follow symbolic links. This option is preferred over the SymLinksIfOwnerMatch due to the performance hit when Apache verifies a symlink and its ownership. • The SymLinksIfOwnerMatch setting instructs the server to only follow symbolic links if the file has the same owner as the symbolic link. This directive should be used only if the use of symbolic links is absolutely necessary for proper functioning of you web server. This will apply an additional security check to verify that the file the symbolic link points to is owned by the same UID that the web server is running under. If proper ownerships and permissions are set for the Version 1.6 Page 23 of 70