HOW TO CONFIGURE MULTI SUB-DOMAN WEBSERVER IN DEBIAN LINUX
Firsts things first, for better file handling install [Midnight Commander]
:
sudo apt-get install mc Download fresh version of webserver software:
sudo apt-get install apache2 Locate and edit configuration file:
/etc/apache2/apache2.conf Note that in some distributions it can named as httpd.conf.
No file at all? You can create it by:
touch apache2.conf For relatively easy editing i recommend Nano editor.
sudo apt-get install nano CTRL+O ► to save file CTRL+X ► exit file Here is an example for locally placed development webserver, containing two sub-domains.