Solved

Add file to web site

Posted on 2014-09-22
8
214 Views
Last Modified: 2014-09-23
Hello Expert,

New to IIS 8. Opened IIS Manager. Clicked on 'Sites'. Chose 'Add Websites'
Added web site called 'SPFiles'. Right clicked on folder 80.  Pasted
file called 140411.htm into folder.

Tried
http://spfiles.com/test_140411.htm   result:404
http://spfiles/test_140411.htm   result:404
http://localhost/spfiles/test_140411.htm

What is the best way to add file to the web site and
what will the URL be when they are added?

Thanks

Allen in Dallas
IIS-140922.gif
0
Comment
Question by:9apit
[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
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 40337397
If it's called 140411.htm then why are you accessing it as test_140411.htm
0
 

Expert Comment

by:pcdev
ID: 40337420
Was just about to say the same!
0
 

Author Comment

by:9apit
ID: 40337476
Typo.
The file is test_140411.htm
0
Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

 
LVL 58

Expert Comment

by:Gary
ID: 40337510
Your virtual directory is called 80 (???)
0
 
LVL 80

Expert Comment

by:David Johnson, CD, MVP
ID: 40337607
where did you add the website? under the default website or did you add a new website (if so) then one of the these 3 items must be unique in the bindings (hostname/ip address/port) or the website will not start.
if you chose hostname then you must edit either your hosts or dns to reflect the new hostname

you can copy any file into the virtual directory defined when you set up the website

if you used a subwebsite under default website then you must use the subsite name i.e.
http://localhost/subwebsite/filename.htm(l)
one of the 3 arrowed items must be unique
0
 

Author Comment

by:9apit
ID: 40337752
Hello David,
Have attached GIFs of the site bindings,
the path to file, and the URL from IE.
The site bindings are
Host Name: SP02
Port: 80

The path is set to the root of the F:/
drive and the GIF shows the file 'test_140411.htm'
in the root of F:/

The URL being tried shown in the third GIF is
http://SP02/test_140411.htm
Result 'This page can't be displayed'

Thanks.

Allen Pittssite bindingssite pathsite URL
0
 
LVL 80

Accepted Solution

by:
David Johnson, CD, MVP earned 500 total points
ID: 40337827
you probably didn't add sp02 to your hosts file
c:\windows\system32\drivers\etc\hosts

do an ipconfig to confirm your machines ip address or simply
127.0.0.1 sp02
0
 

Author Comment

by:9apit
ID: 40339068
Hello David,

That works.

Thanks.

Allen Pitts
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…
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…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

733 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