Skip to main content
Inspiring
May 5, 2014
Question

CF11 host file question

  • May 5, 2014
  • 1 reply
  • 282 views

Hi

I installed Coldfusion 11 and have created several different CF instances using the Instance Manager. Each instance is available on a different port, so for example http://127.0.0.1:8504/ is a different site than http://127.0.0.1:8502/

What I'd like to do is edit the host file on my Mac (Mavericks) to get http://127.0.0.1:8504/ to resolve to "site4", as an example.

When I edit my host file I typed "127.0.0.1:8504       site4"

But it doesn't seem to work. I'm guessing it has something to do with the port number being present in the url?  Yes, I saved the host file and even flushed the DNS but I can't seem to get site4 to resolve to 127.0.0.1:8504....

Any ideas?

Many thanks,

Rich

    This topic has been closed for replies.

    1 reply

    Priyank Shrivastava.
    Inspiring
    May 9, 2014

    Hi Rich,

    The scenario which you're trying to achieve here is not possible, port is not the part of hostname so we cannot define port in Hosts file.

    Thanks,

    Priyank

    Thanks, Priyank Shrivastava