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

    Well, this is certainly confusing.

    We're trying to use the university's CAS service to allow users to be logged in to the using their university login credentials. Instead of logging in to the site and using the Joomla (or in this case Community Builder) login. There is an extension for Joomla allowing external login capability.

    So we're trying to get  localhost.mydomain.edu to point to 127.0.0.1 for developmental purposes.

    In this example, the httpd-vhosts.config file uses www.mysite.com for the fake hostname.

    php - Using Domain name instead of localhost in with https in xampp - Stack Overflow


    So we're trying to get  localhost.mydomain.edu to point to 127.0.0.1 for developmental purposes.

    Where is localhost.mydomain.edu? For virtualhost to work, it must be on the development computer.

    any sysadmin at the university could resolve this for you or tell you if you are going down the wrong road.