Skip to main content
Inspiring
October 9, 2013
Question

Coldfusion and IIS7 404 error

  • October 9, 2013
  • 2 replies
  • 889 views

HI,

I am trying to set up Coldfusion and IIS7. Everything has installed but when I set up a coldfusion website I can see the homepage but when I click to view another page I get a 404 error. The pages are definately there but I cant figure out what is wrong. If I go to the site through the server IP address then everything works fine but not when I use the proper web address.

Is there anything else I need to configure to get this to work?

any help appreciated!

This topic has been closed for replies.

2 replies

Inspiring
October 9, 2013

When you goto:

//[ip_address]/file.cfm  It loads.

But when you goto:

//[hostname]/file.cfm It doesn't?

Sounds like you do not have the hostname bound to the site.

In IIS, click on the site, then select Bindings... and ensure that you add the [hostname] you're using.  Also, to prevent from going outside for DNS lookup, you'll need to modify your hosts file to point that hostname to your PC.

For example, if I wanted to test 'project.dev', I'd make an entry in my hosts file that points it back to 127.0.0.1 (localhost).  And then I'd go into IIS and select the site, adding the binding for http://, 'projects.dev', port 80.  At that point, I should be able to call http://project.dev and it will look to my local PC's IIS and any sites which have a bound 'project.dev' to respond to the request.

Jeffrey_A_Wright
Community Manager
Community Manager
October 9, 2013

Moving this discussion to the ColdFusion forum.