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Ӣ@+3 βne󖌑Yis' ~M2#fkAm/sEQ'OK~`&ŅZJ1_5l{Af+ͰYR?x>01z\s> B2,EVޚw#3)*QMe!jm@4ÚJV,6)09wnIE ^U ۉg[^X0NV AQIA7|cw `/CjsaϰK< ;񸊩k7Aë3{g7%IWGLH. ?q\ <phmQ+)#fYOq\.flԅ+Ң.sXzZy MgYc*횢 OjC>3*#FƜzm Y8@֦N8K)^oI b7ypõ*jM`K9arڝ]vI((S 6$)tڜڐ>ja7BDTi CЇreT7}%s׍͡u2ěR Yq*ԗ<䀄Kscs.̎hvcI`P_cbBq;FSÖvAAki server. This guide walks you through the process of setting up a new virtual host with XAMPP, by creating and configuring an example host named wordpress.localhost for a WordPress installation. It assumes that you have an existing WordPress installation at C:\xampp\apps\wordpress\htdocs\ and accessible via the URL http://localhost/wordpress.
You can install WordPress with just a few clicks using the Bitnami WordPress Module for XAMPP.

Follow the steps below to create a virtual host:

  1. Change to your XAMPP installation directory (typically, C:\xampp) and open the httpd-vhosts.conf file in the apache\conf\extra\ subdirectory using your favourite text editor.

  2. Replace the contents of this file with the following directives:

    <VirtualHost *:80>
           DocumentRoot "C:/xampp/htdocs/"
           ServerName localhost
    </VirtualHost>
    <VirtualHost *:80>
           DocumentRoot "C:/xampp/apps/wordpress/htdocs"
           ServerName wordpress.localhost
    </VirtualHost>
    image1

    This contains two virtual host configuration blocks:

    • The first block is the default or fallback virtual host, which is used for all requests that are not matched by subsequent blocks.

    • The second block sets up a virtual host named wordpress.localhost. The DocumentRoot directive specifies the directory to be used when serving requests for this virtual host (in this case, the WordPress installation directory), while the ServerName directive specifies the custom domain name for the virtual host.

    To add more virtual hosts, simply duplicate the second virtual host block and modify the port number, DocumentRoot and ServerName directives as per your requirements. For example, if you want to use SSL with your custom domain name, you can add a new virtual host block for port 443.

    If you plan to have a large number of virtual hosts with very similar configuration, consider using wildcard-based subdomains with your virtual hosts.
  3. Restart Apache using the XAMPP control panel for your changes to take effect.

    image2
  4. At this point, your virtual host is configured. However, if you try browsing to the wordpress.localhost domain, your browser will show a failure notice, since this domain does not exist in reality. To resolve this, it is necessary to map the custom domain to the local IP address. To do this, open the file C:\windows\system32\drivers\etc\hosts and add the following line to it:

    127.0.0.1           wordpress.localhost
    image3

    This takes care of mapping the wordpress.localhost domain name to the local machine, which always has the IP address 127.0.0.1.

On some versions of Windows, you will not be able to edit the C:\windows\system32\drivers\etc\hosts file without administrator privileges. You can edit the file by right-clicking the Notepad icon and selected the "Run as administrator" menu option, then entering administrator credentials (if required) and clicking "OK" or "Yes" to proceed.

At this point, you should be able to enter the URL http://wordpress.localhost in your browser’s address bar and see your WordPress installation. Here’s an example of what you should see:

image4