Enkuklopadeia

Cogito, ergo sum

**This is an old revision of the document!**

Webserver

Being a linux user, I am familiar with two webservers: Apache and Nginx. My struggle to set up this encyclopedia and my blog was mostly with Apache. So I will only discuss about it.

Apache can be setup two ways: the first one is to modify default case (000-default); the second way is to create a virtualcase at

The easies way is to copy “000-default.conf” and edit the entries inside. After searching hours on google where everyone seems to tell different things, the following worked on RaspberryPi.

  1. DocumentRoot /path/to/site-dir
<Directory /path/to/site-dir>
  	 Options Indexes FollowSymLinks
  	 AllowOverride All
 	 Require all granted
</Directory>
  1. To execute CGI, I didnt understand how to do it
  2. For “php” script
    <Directory /path/to/php-dir>
    	Options FollowSymLinks
    	DirectoryIndex index.php
    	AllowOverride All   
    </Directory>