Solved

Add file to web site

Posted on 2014-09-22
8
219 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
What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

 
LVL 58

Expert Comment

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

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 81

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
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…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

724 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