Skip to main content
paulk7737514
Inspiring
March 2, 2017
Question

Creating a fake host name with XAMPP

  • March 2, 2017
  • 1 reply
  • 3630 views

Does anyone know how to create a fake host name using XAMPP? Usually the site is defined as http://localhost/mydomain/  but I need to do something like this: localhost.mydomain.edu

I am trying to find the file to modify in my XAMPP set up.

    This topic has been closed for replies.

    1 reply

    Nancy OShea
    Community Expert
    Community Expert
    March 2, 2017
    Nancy O'Shea— Product User & Community Expert
    paulk7737514
    Inspiring
    March 2, 2017

    This thread seemed at little confusing as there were errors. I was hoping to find a straightforward solution where nothing was in doubt.

    Rob Hecker2
    Legend
    March 2, 2017

    Thanks, Rob. One other question: Is localhost.mydomain.edu the same as localhost/mydomain.edu   ?


    No, they are not the same.

    If you are going to use localhost like this (localhost/mydomain) then you don't need to create a virtual host. Don't add a top level domain to the virtual host (com, edu, net)

    If I have a website with the address mydomainname.com, then I create a virtual host with the name mydomainname. It makes it easy to keep track.