```
<VirtualHost *:80>
- ServerName lp2016.libreplanet.org
- DocumentRoot /path/to/libreplanet-static
-
- <Directory />
- Options FollowSymLinks
- AllowOverride All
- </Directory>
- <Directory /path/to/libreplanet-static>
- Options Indexes FollowSymLinks MultiViews
- Options +Includes
- XBitHack on
- AllowOverride All
- Order allow,deny
- # Directive needed in Apache 2.4
- allow from all
- </Directory>
-
- ErrorLog ${APACHE_LOG_DIR}/error.log
- LogLevel warn
- CustomLog ${APACHE_LOG_DIR}/access.log combined
+RewriteEngine on
+ ServerName local-dev.libreplanet.org
+ ServerAdmin webmaster@localhost
+ DocumentRoot /local-path/path-to-site
+ <Directory /local-path/path-to-site/>
+ Options Indexes FollowSymLinks MultiViews
+ AllowOverride All
+ Require all granted
+ Order deny,allow
+ deny from none
+ allow from all
+ SSILegacyExprParser on
+ Options +Includes
+ XBitHack on
+ </Directory>
+ ErrorLog /home/owner/libreplanet-static/logs/error.log
+ CustomLog /home/owner/libreplanet-static/access.log combined
</VirtualHost>
```
Add the following to your new page (it should remain commented out, as that is the syntax for SSI):
```
-<!--#include virtual="/server/2016/header.html"-->
-<!--#include virtual="/server/2016/banner.html"-->
-<!--#include virtual="/server/2016/sidebar.html"-->
-<!--#include virtual="/server/2016/footer.html"-->
-<!--#include virtual="/server/2016/close.html"-->
+<!--#include virtual="/2016/includes/header.html"-->
+<!--#include virtual="/2016/includes/banner.html"-->
+<!--#include virtual="/2016/includes/sidebar.html"-->
+<!--#include virtual="/2016/includes/footer.html"-->
+<!--#include virtual="/2016/includes/close.html"-->
```
This will include the header, banner, sidebar, footer and closing tags
saving you from duplicating HTML.
If JS is needed for a page, then create a file, containing the JS
-includes, in `/server/2016/` & use SSI to include it in the page.
+includes, in `/2016/includes/` & use SSI to include it in the page.
-Use `/server/2016/boilerplate.html` to start a new page.
+Use `/2016/includes/boilerplate.html` to start a new page.
### Add Your Markup
### Enable SSI
Files that contain include directives must be marked as executable
-otherwise Apache will not parse them. The directive `XBitHack on`
-enables this behavior.
+otherwise Apache will not parse them. (The directive `XBitHack on` in the .conf file pasted above enables this behavior).
To mark a file as executable, run: