image alt

Virtual Host using XAMPP

blog image

Laravel 8 PHP Tutorial Series 

Tutorial 05

 

Virtual Host

Video Link: PHP Laravel Beginner tutorial | How to create a Virtual Host - Tutorial 05 - YouTube

Folder Path 01 : C:\xampp\apache\conf\extra

Folder Path 02 : C:\Windows\System32\drivers\etc

What is a Virtual Host

In its initial days, a virtual host started with the purpose of hosting more than the website (e.g. website1.example.com, website2.example.com, etc.) on a single machine. That would also mean sharing single machine resources such as memory and CPU. The resources are shared and utilized in such a manner so that maximum efficiency is achieved. Now with the invention of cloud computing, virtual now serves more purposes than ever, such as solutions like virtual application hosting, virtual server hosting, virtual storage hosting, and sometimes also virtual/entire data center hosting.

More Info: https://www.educba.com/virtual-host/

Apache Virtual Host

Apache Virtual Hosts A.K.A Virtual Host(Vhost) is used to run more than one website (domain) using a single IP address. In other words, you can have multiple websites (domains) but a single server. Different sites will be shown depending on the user’s requested URL. The best part is you can have any number of virtual hosts in a single server. It simply means you can have any number of websites (domains) on a single server. As you see in the above picture, requests from each domain will be mapped into the respective document root. If you don’t know what document root means it is where all the files of the website are located(could be public_html). I know you know what document root means, I’m just messing around(tongue-out-face).

More Info: https://dasunhegoda.com/

 

Facebook   : https://www.facebook.com/CyberElysium

Instagram   : https://www.instagram.com/cyber_elysium/

Twitter     : https://twitter.com/CyberElysium

LinkedIn   : https://www.linkedin.com/company/CyberElysium

Visit our website for more details: https://cyberelysium.com/

Thanks for reading ❤

Ready to grow your business digitally?