Answers

  1. Use the apachectl command:

    # apachectl start
  2. It should be a hidden file in the resource you wish to restrict.

  3. Edit httpd.conf or apache2.conf and enable support for .htaccess files. Look for a directive similar to the following and make sure that the directive is not commented out:

    AccessFileName .htaccess
    
    <Files ~ "^\.ht">
        Order allow,deny
        Deny from all
    </Files>
  4. Issue the following command as root:

    # htpasswd -c /etc/apache2/users
  5. Issue the following command:

    # apachectl startssl

    You may also need to edit the http.conf file or the ssl.conf and ssl.load files.

  6. The http.conf file. Apache 2.0 is configured using the apache2.conf file.

  7. Squid ACLs are case-sensitive, as is common with many Unix-based applications and daemons. The ACL given forbids only Paris and Hilton, not paris and hilton.

Exercises

  1. Install the Apache server using any method you prefer (e.g., RPM for Red Hat/Fedora systems, apt or Synaptic for Debian-based systems). After you install Apache, review the location and contents of the Apache configuration files. Look for httpd.conf or the equivalent, as well as associated configuration files. Review the location of all log files, as well. If you wish, write down the location of the configuration and log files on a separate piece of paper.

  2. Configure the Apache server so that it will serve up a basic page. You may have to enable certain directives, such as the user and group Apache uses. It is also sometimes necessary to specify the server root (e.g., where the server's configuration ...

Get LPI Linux Certification in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.