Solved

Total IIS Newbie Struggling At the off

Posted on 2014-02-07
12
233 Views
Last Modified: 2014-02-13
I just copied a static website into a local folder, and I want to view locally thru IIS so no big ambitions.
Win 8.1, IIS, in the IIS snap-in, I've already removed 'Default Website', not sure how, but anyway, I click 'Add Website', Site Name=arbitryname, physical path= to static folder, IP address (leave All Unassigned), host name-another arbitrary name, adds OK but I can't browse to it.
I don't know to browse to http://localhost/arbitryname, or http://anotherarbitaryname, or etc. but anyway, nothing coming up, any Ideas?
0
Comment
Question by:Silas2
  • 6
  • 5
12 Comments
 
LVL 17

Expert Comment

by:Kent Dyer
Comment Utility
Being able to browse or open a folder in IIS is a vulnerability.  By default, it is turned off.  You can turn it on in settings..

In IIS, you can view webpages in MMC..  Depending on GPO and security settings, you may not be able to browse to localhost.

You do need to keep one thing in mind..  Windows 8.1, 8, 7, etc. and the use of IIS is called personal web services.  While OK as a "Playground" it is not a good "enterprise solution".
0
 

Author Comment

by:Silas2
Comment Utility
This is really a playground purpose.
I may not be explaining myself, I'm not 'Being able to browse or open a folder' but just trying to get IIS to dish out static pages from the folder, I just keep getting 502, DNS lookup failure.
0
 
LVL 17

Expert Comment

by:Kent Dyer
Comment Utility
in your local hosts file (C:\Windows\System32\drivers\etc). And still holds true on 64-bit implementations.  Do you have have:

#      127.0.0.1       localhost

You may need to turn this to:
      127.0.0.1       localhost

Save and close..  Try again..  if it still does not work..  Try - http://127.0.0.1 in place of http://localhost
0
 

Author Comment

by:Silas2
Comment Utility
Its says in the hosts file:
# localhost name resolution is handled within DNS itself.
#      127.0.0.1       localhost
so...that's the windows I default, I haven't touched it, myself. knowingly...
When I try http://localhost/websitename/filename.html I'm getting a 404, it's definitely there, and I'm copy/pasting the websitename from 'Edit Site Bindings/Host Name' in the snap-in...
0
 
LVL 17

Expert Comment

by:Kent Dyer
Comment Utility
Just try this..  If you are not going to edit the hosts file with notepad then...

try - http://127.0.0.1 and see if that comes up..

in IIS itself as well you should be able to browse to page as well.
0
 

Author Comment

by:Silas2
Comment Utility
If I do  http://127.0.0.1 I get a blank page, but when I do http://localhost/, I get the iisstart.htm page, so I guess localhost is working, dunno whats wrong with 127.0.0.1 though..
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 17

Expert Comment

by:Kent Dyer
Comment Utility
That is good..  Can you get to http://localhost/somepage.htm does it display?
0
 

Author Comment

by:Silas2
Comment Utility
I'm getting 404's
0
 
LVL 17

Expert Comment

by:Kent Dyer
Comment Utility
let me fire up my xp vm..  just a sec.
0
 

Author Comment

by:Silas2
Comment Utility
I really appreciate your help, I gotta go out now though, I'll be back on it tomorrow though...
0
 
LVL 17

Accepted Solution

by:
Kent Dyer earned 125 total points
Comment Utility
OK..  Just completed the setup of IIS and works fine,,

Please review the attached.
IIS-Setup.docx
0
 
LVL 78

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 125 total points
Comment Utility
in the bindings if you specify a hostname you have to add that name to your hosts file
IIS Bindings
# IP             Hosts

127.0.0.1	testa
127.0.0.1	testb
127.0.0.1	Website1
127.0.0.1	Website2
127.0.0.1	Website3
127.0.0.1	Website4

Open in new window

0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now