How to create virtual host in Linux using terminal | Create virtual host in apache server

Опубликовано: 22 Март 2026
на канале: CodeFixx (Syed Imran Ertaza)
245
2

A website developer needs to create a virtual host when developing a new website. Though it is not mandatory, yet to make a professional extensive web application, it is very much important creating a virtual host for the website. In this tutorial, I have shown you how to create a virtual host in a Linux terminal. I have used ubuntu here.

Here is the virtual host code
===================================================
ServerAdmin [email protected]
ServerName shohozhishab.web
ServerAlias www.shohozhishab.web
DocumentRoot /var/www/shohozhishab.web/public_html
ErrorLog /var/www/shohozhishab.web/error.log
CustomLog /var/www/shohozhishab.web/access.log combined
==================================================

These are our tutorials
#website development tutorial
#linux_tutorial
#virtualhost
#php tutorial
#linux
#laravel tutorial
#codeigniter tutorial
#opencart tutorial
#ecommerce tutorial
#git tutorial

Some other technologies are
#ubuntu management
#web server management