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 4, 2017

    In order to test the CAS login from the actual university website I have to create a fake hostname on my local server that is identical to the university domain name, otherwise it will not work. And since the website will be hosted in a subdomain of the university domain name, I can replicate this setup locally using localhost.universitydomainname.edu.


    OK. That helps explain it.

    And you are going to use "localhost" as the subdomain of universitydomainname.edu? If that works, fine, but if it doesn't work, it may be because -  since localhost is the root of your local web, it can't be used as a subdomain as well.

    In the following address, localhost is the subdomain and universitydomainname is the root domain and TLD is the top level domain.

    localhost.universitydomainname.edu.

    I would not use localhost in the name. Instead something like:

    othername.universitydomainname.edu.

    I often create subdomains for new websites. In the following, the numbers are the subdomains. mydomain is the root domain, and COM is the TLD

    11.mywebsite.com

    14.mywebsite.com

    32.mywebsite.com