?
Solved

Total IIS Newbie Struggling At the off

Posted on 2014-02-07
12
Medium Priority
?
243 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
12 Comments
 
LVL 17

Expert Comment

by:Kent Dyer
ID: 39842382
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
ID: 39842434
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
ID: 39842457
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
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 

Author Comment

by:Silas2
ID: 39842501
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
ID: 39842508
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
ID: 39842522
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
 
LVL 17

Expert Comment

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

Author Comment

by:Silas2
ID: 39842587
I'm getting 404's
0
 
LVL 17

Expert Comment

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

Author Comment

by:Silas2
ID: 39842609
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 500 total points
ID: 39842741
OK..  Just completed the setup of IIS and works fine,,

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

Assisted Solution

by:David Johnson, CD, MVP
David Johnson, CD, MVP earned 500 total points
ID: 39843745
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

765 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