Jonathan Lind
Jonathan Lind

Reputation: 215

IIS Binding on localhost can't show page

I'm trying to set up bindings for two services on localhost IIS but when I attempt to access the URL I get 404 (Page cannot be displayed).

Edit: This is purely for testing purposes and not for a release!

My setup:

Service 1:

Service 2:

Can anyone see what I might be doing wrong?

Upvotes: 2

Views: 3220

Answers (1)

Jonathan Lind
Jonathan Lind

Reputation: 215

I'm going to answer the question myself as I found what the problem was. Maybe a simple thing obvious to most but it might help someone:

The url's (ServiceAdmin.localhost and jftapi.com) needed to be added to the hosts file located in Windows\System32\drivers\etc as follows:

   127.0.0.1       ServiceAdmin.localhost
   127.0.0.1       www.jftapi.com

This was what I had missed!

Upvotes: 1

Related Questions