简体   繁体   中英

Site works on Localhost, but not remotely - IIS7.5

I have recently deployed a ASP.NET MVC site using Octopus Deploy to our test environment which is running Windows Server 2008 R2 with IIS 7.5

The site works happily on the server, but i cannot connect to the site remotely through any browser, and neither can my colleagues.

There are multiple sites operating on that server working remotely just fine.

I can ping the site from my development machine.

Any ideas what i should be checking next?

Things to check...

Deployment Task

In the Octopus Administration Website, open "Your Project" -> "Process" -> The deployment task.

Check that you have selected to deploy the "IIS Web Site" feature and entered web site name, application pool name (double check that this is correct), the .NET version, and the correct bindings (ie port number).

If you are using a specific host name, ensure you have entered that in the binding too (otherwise IIS can't route traffic to the correct site, and the site won't start in IIS).

IIS

Open IIS and see if the website is running. If not, when you attempt to run it you will get a message to explain why. Usually it is because there are multiple sites attempting to run on the same IP/Port combination without a host name to distinguish between them. This is likely to feed back into the deployment task.

Error Logs

If all else fails, check some logs... in particular:

  1. View the deploymentin Octopus and select "Task Log", then switch on "Verbose" and read through the deployment to see if there is anything amiss
  2. Check the event logs on the target machine for an error message

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM