RewriteEngine on
ServerName local-dev.libreplanet.org
ServerAdmin webmaster@localhost
- DocumentRoot /local-path/path-to-site
- <Directory /local-path/path-to-site/>
+ DocumentRoot /path-to-site
+ <Directory /path-to-site/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Require all granted
Options +Includes
XBitHack on
</Directory>
- ErrorLog /home/owner/libreplanet-static/logs/error.log
- CustomLog /home/owner/libreplanet-static/access.log combined
+ ErrorLog /path-to-site/logs/error.log
+ CustomLog /path-to-site/logs/access.log combined
</VirtualHost>
```
-Replace all instances of `/path/to/libreplanet-static` with the full path to the root directory of your local
+Replace all instances of `/path-to-site` and with the full path to the root directory of your local
git repository.
*Enable virtual host*
```
a2ensite your-virtual-host
-* Do not need to do this -mdb
+* Do not need to do on mdb system
```
Replace `your-virtual-host` with the name of virtual host file you made (in this case, libreplanet).
*Edit your hosts file*
-Edit your system's `/etc/hosts` file and add the following to the bottom:
+Edit your system's `/etc/hosts` file and add to the line starting with
+127.0.0.1: `local-dev.libreplanet.org`
-```
-127.0.0.1 lp2018.libreplanet.org
-```
*Test*
-Visit <http://lp2018.libreplanet.org/2018> in your web browser. If
+Visit <http://local-dev.libreplanet.org/2018> in your web browser. If
everything is configured properly, you will see the LibrePlanet 2018
site, complete with header, sidebar, and footer.