Link to home
Start Free TrialLog in
Avatar of Silas2
Silas2

asked on

Total IIS Newbie Struggling At the off

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?
Avatar of Kent Dyer
Kent Dyer
Flag of United States of America image

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".
Avatar of Silas2
Silas2

ASKER

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.
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
Avatar of Silas2

ASKER

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...
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.
Avatar of Silas2

ASKER

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..
That is good..  Can you get to http://localhost/somepage.htm does it display?
Avatar of Silas2

ASKER

I'm getting 404's
let me fire up my xp vm..  just a sec.
Avatar of Silas2

ASKER

I really appreciate your help, I gotta go out now though, I'll be back on it tomorrow though...
ASKER CERTIFIED SOLUTION
Avatar of Kent Dyer
Kent Dyer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial