简体   繁体   中英

Web application not accessible using server name or IP address

I have a web application published on our Windows Server 2008 R2 (running IIS7). I can access it through http://localhost/WebApp without any problem.

However, if I try using http://servername/WebApp or http://IP_address/WebApp (from both server machine itself or from a client machine) then it won't show the page correctly (Access Denied Message while login my apps).

My application is developed in ASP.NET and and uses Crystal Reports 2008.

Permissions: Authenticated user and Iuser (folders).

Authentication: Anonymous and Forms are enabled

Please help me to access my application by both IP address and server name

A simple answer is that you need to configure IIS Host file for your server. This is located here: C:\\WINDOWS\\system32\\drivers\\etc\\hosts.

127.0.0.1       localhost

You can add another line similar to the one above, and give it the server name.

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