O'Reilly logo

HTML5 Boilerplate Web Development by Divya Manian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Setting up the Apache server

Before we check out the various features of the Apache configuration file provided by HTML5 Boilerplate, let us set up a local Apache server, so that we can see these features in action.

Installing Apache

We will look at the installations of Apache on Mac, Windows, and Linux.

Mac

You do not have to do anything special; Apache is already installed. But to use it for this project, ensure you copy all the files to the website's folder in your home folder (/~<username>). Edit the /etc/apache2/httpd.conf file to change the following highlighted code:

<Directory /usr/share/web>
AllowOverride None
        Options MultiViewsFollowSymlinks
        Order allow,deny
        Allow from all
        Header Set Cache-Control no-cache
</Directory>

To the following:

<Directory ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required