How to make a PDF accessible through IIS

I tried doing a lot of research online via google but couldn't get a straight answer. Can someone walk we me through how to make a PDF accessible/available as an HTTP address that would be served through IIS? I wasn't sure if I needed to create a new site or if I could somehow nest it in one of my current sites.

IIS Version 7.5.7600.16385
nflynn85Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Emmanuel AdebayoGlobal Windows Infrastructure Engineer - ConsultantCommented:
You will need to configure .pdf in MIME which will which maps the application to server the pdf.
William FulksSystems Analyst & WebmasterCommented:
Is your site not display PDF but instead prompts to download or something like that?

All you need to do is define .pdf in the MIME Types section.

Open IIS and click on your site in the left column, then over in the menu of icons on the right under IIS you should see one called MIME Types.

Then click the Add button in the top right, and add pdf and give it a description. You may have to restart IIS to make the change kick in.
nflynn85Author Commented:
Is your site not display PDF but instead prompts to download or something like that?

Neither. I need to create an HTTP link for a PDF that is stored on my server.

The .pdf extension is already added to the MIME Type
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Dave BaldwinFixer of ProblemsCommented:
You have to have a web server / site that includes the PDF as file that has a link.  The PDF by itself is not enough to create a link that will work.  It must be a file inside a web site folder.
nflynn85Author Commented:
You have to have a web server / site that includes the PDF as file that has a link.  The PDF by itself is not enough to create a link that will work.  It must be a file inside a web site folder.

Okay so if I throw that PDF into an existing web site folder in one of my sites (or create a new folder in a site),

what steps do I take to get from point A to point Z?
Dave BaldwinFixer of ProblemsCommented:
Put it in the existing web site folder and create a link to it.  If it is located in http://www.mydomain.com/  then you can put the PDF in the root and make a link to http://www.mydomain.com/thatpdf.pdf .  It does Not have to show as a link in the web site, the link will be good if the file is in the right place.  I have done that many times to let the person I send the link to download a file that nobody else knows about.
nflynn85Author Commented:
Put it in the existing web site folder and create a link to it.  If it is located in http://www.mydomain.com/  then you can put the PDF in the root and make a link to http://www.mydomain.com/thatpdf.pdf .  It does Not have to show as a link in the web site, the link will be good if the file is in the right place.  I have done that many times to let the person I send the link to download a file that nobody else knows about.

So do I right click on the folder within the site that contains the PDF and select add application or add virtual directory? I don't see an option to create a link anywhere
Dave BaldwinFixer of ProblemsCommented:
So do I right click on the folder within the site that contains the PDF and select add application or add virtual directory? I don't see an option to create a link anywhere
None of the above.  You're trying too hard.  You just type it out like I did above.  Then you can send it to someone in an email.

It does not ever have to show up on a web page.  I have thousands of files on my web sites that do not show up on web pages.  Some of them are demos I created to answer questions here.  Like this... http://www.yamiam.org/WebSiteDesignOutline.pdf  Except for right here... there is no link to that file on that site.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nflynn85Author Commented:
Ahhhhhhhh. Got it.

What If I wanted it to show up as a hyperlink on a web page?
Dave BaldwinFixer of ProblemsCommented:
Then you have to create a normal HTML web page with <a> tags and such.
<a href='http://www.yamiam.org/WebSiteDesignOutline.pdf'>WebSiteDesignOutline.pdf</a>

Open in new window

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft IIS Web Server

From novice to tech pro — start learning today.