Enkuklopadeia

Cogito, ergo sum

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
webserver [2025/02/14 16:40] rishabhsteinwebserver [Unknown date] (current) – external edit (Unknown date) 127.0.0.1
Line 3: Line 3:
 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.