First install apache2 webserver firing following command on your terminal: sudo apt-get install apache2 Step 1 : Create a “.conf ” file in sites-available. cd /etc/apache2/sites-available $nano test.mydomaine.com.conf Step 2 : Insert following content in test.mydomaine.com : <VirtualHost *:80> ServerAdmin mymail@gmail.com //your server email id ServerName test.mydomaine.com //your domain name ServerAlias www.test.mydomaine.com // alias if you want its optional DocumentRoot /var/www/testfolder/ //your root folder if default no change needed <Directory "/var/www/testfolder"> AuthType Basic AuthName "test" AuthUserFile /var/www/testfolder/passwords Require valid-user test …
Social Profiles