Solved

IIS 6.0: Images with no file extension

Posted on 2004-03-30
8
2,093 Views
Last Modified: 2009-07-22
We have thousands of JPEG and GIF images that are displayed in internal web apps. Many of these image files, however, does not have a file extension. On Windows 2000 (IIS 5.0) this was no problem - the image file was sent to the browser and the browser recognized and displayed all images correctly.

But on IIS 6.0, I find that files without extension (no associated mime type) are not allowed, so I get 404 - Not found for all these images. If I add .jpg to the file name I can see the image, so it's not a matter of rights.

Does anyone know how to instruct IIS 6.0 to also allow files without extension?
0
Comment
Question by:jetaasen
8 Comments
 
LVL 4

Expert Comment

by:SurferJoe
ID: 10715911
Interesting problem? I would never have believed it would work in the first place!

Searched Support.Microsoft.com product = IIS 6.0
Search string = allow files without extension

This article came up, currently unavailable?

      IIS 6.0 Does Not Serve Dynamic Content
       (555019) - When you request a dynamic content, from an IIS 6.0 Web server, and the services extension that is not being enabled on the Web server, you receive the following error message: HTTP Error 404 - File or directory not found.

0
 
LVL 3

Author Comment

by:jetaasen
ID: 10716552
Yes, as I said in my question - IIS 6.0 does not allow unknown mime types/file extensions. But you can add new and I have successfully loaded these images with custom extensions (like .xyz). But my question is: How do I allow files with no extension?
0
 
LVL 6

Expert Comment

by:BAlexandrov
ID: 10722024
I have tried to register . extension for image/jpeg and also examined metabase (configuration settings) of IIS6 - nothing for turning off this behaviour. Probbaly it will be easyer to rename them - from command prompt: ren *. *.jpg

HTH
Bojidar Alexandrov
0
 
LVL 2

Accepted Solution

by:
tonyhall_mcse earned 500 total points
ID: 10818649
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 6

Expert Comment

by:BAlexandrov
ID: 10820395
No this does not help! It is applicable only if you have extension to register.
0
 
LVL 2

Expert Comment

by:tonyhall_mcse
ID: 10820943
This part didn't work?

-----------------------------------------------------
If you want to serve all files regardless of the file name extension (for example, if you cannot predict all files that will be served), follow these steps to add a wildcard character mapping:

(Note You should only add the wildcard mapping to the IIS MIME map as a temporary solution during troubleshooting. After you have determined that a missing MIME type is the cause of the issue, remove the wildcard mapping and add the specific mapping for the MIME type that you need to serve.)
Open the IIS Microsoft Management Console (MMC), right-click the local computer name, and then click Properties.
Click MIME Types.
Click New.
In the Extension box, type an asterisk (*).
In the MIME Type box, type application/octet-stream.
Apply the new settings. Note that you must restart the World Wide Web Publishing Service or wait for the worker process to recycle for the changes to take effect.
-----------------------------------------------------

Sorry ... sounded like it was feasible.

TTFN
Tony
0
 
LVL 6

Expert Comment

by:BAlexandrov
ID: 10820997
Sorry, I did'nt read article till the end.

I have tried - this really works.
0
 

Expert Comment

by:bakelsbv
ID: 24913379
That really helps, only you don't have to do this for the whole webserver, but you can also do this per website of virtual directory.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Logparser is the smartest tool I have ever used in parsing IIS log files and there are many interesting things I wanted to share with everyone one of the  real-world  scenario from my current project. Let's get started with  scenario - How do w…
First of all, clustering IIS is something you should rarely consider doing. In almost all cases, Microsoft Network Load Balancing (NLB) (http://technet.microsoft.com/en-us/library/cc758834(WS.10).aspx) is a much better solution when you need to p…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

746 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now