Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Reviews
  • Contact
  • Toggle search form
Home » Web Server » How to create Virtual Hosts in a WAMPserver
  • oracle q4 earnings are in e28094 but what does it really mean 700x425 1
    How to uninstall Oracle Database 11G or 12c Oracle/MSSQL/MySQL
  • Synology NFS Share
    Add Synology NFS Storage to Proxmox VE for VMs and Backups Storage
  • openshift
    Set up OpenShift Cluster using Red Hat CodeReady Containers Linux
  • WebLaps
    Configure WebLAPS to manage Microsoft LAPS Windows
  • Feature image
    When Should I Use TPM or TPM + PIN Security | Vulnerability Scans and Assessment
  • aptira ansible 1
    The module ping was not found in configured module paths, core modules are missing Configuration Management Tool
  • fghj
    MDT deployment failed and Stuck at Command Prompt: Windows installation does not proceed via PXE boot Windows Server
  • Featured image 1
    Add and Remove Folders in Favorites in Microsoft Outlook Windows

How to create Virtual Hosts in a WAMPserver

Posted on 26/04/202326/04/2023 Christian By Christian No Comments on How to create Virtual Hosts in a WAMPserver
WAMPServer Virtual Host

A virtual host is a method for hosting multiple domain names whereby a single device serves or runs multiple websites through a single instance of Apache HTTP Server (“httpd”). This allows one server to share its resources, such as memory and processor cycles, without requiring all services provided to use the same hostname. Please see How to uninstall WAMPServer from Windows, How to update WampServer to Latest Version, How to Create a Restore Point in Windows 11, How to Create a Restore Point in Windows 10 and Windows 11, and How to Install and Configure WordPress on Your Windows Computer Using WAMP SERVER. In this guide, I will be showing you how to create Virtual Hosts in a WAMPserver.

Types of Virtual Host Configurations

There are two types of Apache virtual host configurations: IP-Based Virtual Host and Name-based Virtual Host. In most cases, a name-based virtual host is recommended. Please see how to Install and configure TeamPass Password Manager.

IP-Based Virtual Host

In this configuration, we use different IPs for each domain. By this I mean, you are pointing two different websites (with different IP-address) to the server that runs Apache. That physical server should have two different IP-address configured.

This means that the server should have two ethernet cards. Each one is configured to the IP address of the corresponding website that the Apache virtual host will serve. So, this is not feasible for most aspects. An example, the server contains two NIC cards. One is configured with an IP Addres_1 pointing to a DNS entry_1, and another IP Address_2 pointing to another DNS entry_2.

Name-Based Virtual Host

Name-based virtual hosts are the most commonly and frequently used virtual hosting technique that is used today. In this configuration, The name-based Virtual host will use a single IP address for all the domains on the given server. When the browser is trying to connect to the server. It will send a message to the server informing about the domain name to which it is trying to connect.

When the Apache web server receives a request, it looks for the hostname in the  HTTP header, and depending on the hostname, it servers different websites. In the following example, the server contains only one NIC card configured with an IP address pointing to the DNS entry. I will be using this method. If you do not create a virtual host when Installing and configuring TeamPass Password Manager, you will get the following error “TeamPass stuck on working on it“.

This is quiet easy as you only need a single IP-address on a physical server. But then have to update DNS with multiple entries (website names) pointing to the same IP-address. 

Port-Based

The Port-based is similar to IP-based virtual hosting. The difference between them is, instead of using a different IP address for each of the virtual hosts, we use different ports in which the servers are configured to respond to multiple websites that are dependent on the port of the server.  Port-based virtual hosting is also possible in principle but is rarely used in practice because it is unfriendly to users.

Here are some interesting pieces: How to Disable Camera Access in Windows 10, Workaround for a zero-day vulnerability on Microsoft Exchange Server, How to save and stop modification to Microsoft Management Console, and how to scale up and scale out on Azure.

Create Virtual Hosts in a WAMPserver

Therefore, we will be using name-based virtual for configuring Apache Virtual Host as you can run several websites on the same server. In this article, I will not be using the  httpd-vhosts.conf but directly from the page below (Wamp server Home page). It is simpler 🙂 To access the Wamp homepage, click on the Wmapserver icon and select localhost. You can as well open a web browser and type localhost directly.

If you do not create an Apache Virtual Host for Teampass, the installation will fail, and will be stuck working on it. Please see this article on how to fix TeamPass stuck on working on it.
image-45

As you can see below, the Wampserver home page is launched.

create-virtual-directory

Click on Add a Virtual Host as shown below.

Add-a-virtualhost

Copy the address as text from File Explorer for the absolute path of the virtual-host folder. This will be needed in the next window below.

copy-Teampass-absolute-path

Fill out both of the inputs outlined in red. Enter the name of your site, and the path to the directory as shown above.

You can optionally clear the DNS cache. To do this, Open the command line and enter ipconfig /flushdns
start-virtual-host-creation

Right-click on Wamp Server and select the tool in order to restart the DNS.

Restart-DNS

As you can see, the Virtualhost has been created.

Virtualhost-created

Note: HTTP is the communication protocol that allows a browser to communicate with a Web server. HTTPS adds a layer of security in communication, enabling data encryption using TLS/SSL. To configure a Virtual Host HTTPS, you must first configure a digital certificate. Please see this article on how to enable SSL on Wampserver.

I hope you found this blog post helpful on how to Create Virtual Hosts in a WAMPserver”. If you have any questions, please let me know in the comment session.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Click to share on X (Opens in new window) X
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Pinterest (Opens in new window) Pinterest
  • Click to share on Tumblr (Opens in new window) Tumblr
  • Click to share on Telegram (Opens in new window) Telegram
  • Click to share on WhatsApp (Opens in new window) WhatsApp
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on Bluesky (Opens in new window) Bluesky
  • Click to share on Threads (Opens in new window) Threads
  • Click to share on Nextdoor (Opens in new window) Nextdoor
Web Server, Windows, Windows Server Tags:Virtual Host, Windows 10, Windows 11

Post navigation

Previous Post: Set Up and Use ChatGPT in Linux Terminal
Next Post: How to fix TeamPass stuck on working on it

Related Posts

  • Featured Image
    Remote WMI Connection: How to enable or disable WMI Traffic Using Firewall UI Windows
  • banner 6
    How to Set a Static IP Address in Windows 11 Windows
  • windows 10 s splash 100720578 large
    Open the location of a Program: How to search in Windows 10 to find a file, folder, or program in File Explorer Windows
  • Check Hard Drive Health (SMART) in Windows
    How to check Hard Drive Health (SMART) in Windows Windows
  • win 10 login screen
    Import a user profile in Windows to another PC Windows
  • WindowsWebClientcoverPH67
    ​​​​​Install HTML Web Client for Microsoft RDS Windows

More Related Articles

Featured Image Remote WMI Connection: How to enable or disable WMI Traffic Using Firewall UI Windows
banner 6 How to Set a Static IP Address in Windows 11 Windows
windows 10 s splash 100720578 large Open the location of a Program: How to search in Windows 10 to find a file, folder, or program in File Explorer Windows
Check Hard Drive Health (SMART) in Windows How to check Hard Drive Health (SMART) in Windows Windows
win 10 login screen Import a user profile in Windows to another PC Windows
WindowsWebClientcoverPH67 ​​​​​Install HTML Web Client for Microsoft RDS Windows

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

sysadmin top30a
 
  • oracle q4 earnings are in e28094 but what does it really mean 700x425 1
    How to uninstall Oracle Database 11G or 12c Oracle/MSSQL/MySQL
  • Synology NFS Share
    Add Synology NFS Storage to Proxmox VE for VMs and Backups Storage
  • openshift
    Set up OpenShift Cluster using Red Hat CodeReady Containers Linux
  • WebLaps
    Configure WebLAPS to manage Microsoft LAPS Windows
  • Feature image
    When Should I Use TPM or TPM + PIN Security | Vulnerability Scans and Assessment
  • aptira ansible 1
    The module ping was not found in configured module paths, core modules are missing Configuration Management Tool
  • fghj
    MDT deployment failed and Stuck at Command Prompt: Windows installation does not proceed via PXE boot Windows Server
  • Featured image 1
    Add and Remove Folders in Favorites in Microsoft Outlook Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,841 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

AWS Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.