Being a linux user, I am familiar with two webservers: [Apache](http://httpd.apache.org/) and [Nginx](https://nginx.org/en/). My struggle to set up this [encyclopedia](enkuklopedia) and my [[blog]] was mostly with Apache. So I will only discuss about it.
Being a linux user, I am familiar with two webservers: [Apache](http://httpd.apache.org/) and [Nginx](https://nginx.org/en/). My struggle to set up this [encyclopedia](enkuklopedia) and my [[blog]] was mostly with Apache. So I will only discuss about it.
-
[Apache](http://httpd.apache.org/) can be setup two ways: the first one is to modify default case (000-default); the second way is to create a virtualcase at
+
[Apache](http://httpd.apache.org/) can be setup two ways: the first one is to modify default case (000-default); the second way is to create a virtualcase. We will go for the latter one. To create the configuration of virtualsite, do following:
-
* "/etc/apache2/sites-available/virtualcase.conf"
+
* "sudo vim /etc/apache2/sites-available/virtualcase.conf"
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.
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.
Line 30:
Line 30:
* sudo a2ensite vitualcase.conf
* sudo a2ensite vitualcase.conf
+
After setting up, the most important thing is to check permission of the directory especially if apache gives 404 error.