I tried to serve a proxy.pac file from the IIS on my localhost (IIS 7.5/Windows 7), to test some changes to a proxy auto-configuration script. IIS gave me a 404 error instead of serving the file. After fiddling about with various security settings for quite some time, I was eventually able to figure out the problem. If IIS lacks a configured MIME type for a file then it will refuse to serve it — returning a 404 error instead. I suspected MIME types could have something to do with it after I found out that IIS happily served the file as a regular text file if the file was named proxy.txt. As always with Microsoft, when you've successfully pinpointed the problem yourself, you're finally able to launch a Google search that reveals something useful...
Turns out it's all documented, e.g. in the article with the catchy title: Error message when users visit a Web site that is hosted on a server that is running Internet Information Services 7.0: "HTTP Error 404.3 - Not Found". Note, Microsoft states that users visiting the web site will get an error message indicating that the problem is caused by the missing MIME map policy. For the record, I've tested multiple browsers, IE9, FF4,Chrome, Opera. Neither showed a useful error page, so IIS 7.5 does not serve such a page by default.
So, the file exists and you get the generic 404. How can you verify the problem? If you look in the IIS log file you'll see something similar to this (I've truncated the user agent):
GET /proxyx.pac - 8000 - ::1 Mozilla/5.0+(compatible;+MSIE+9.0;.....) 404 3 50 1Note the status codes: 404 3. These are the clues Microsoft has left for you on your quest to serve a static file from IIS. That's unless you, like me, find that you do not have any log files. In that case you should check out my latest post: Enabling IIS log files on Windows 7.
Fortunately, the problem is easily fixed. To add a MIME type for the proxy.pac go to the IIS Manager and select the website. On the settings screen, you'll see the "MIME Types" in the IIS section. There you can "Add.." new MIME types.
According to Wikipedia, there are two MIME types in use for PAC files. I used the newer of the two: application/x-javascript-config.
That's it. IIS should now serve the file, with the correct MIME-type.
Thanks - I was really puzzled by this error and even trying a new virtual website serving just this one file had no effect.
ReplyDeleteThanks, helped me lot.
ReplyDeleteclarks outlet
ReplyDeletenfl jerseys wholesale
beats by dre
cheap snapbacks
ralph lauren uk
abercrombie and fitch
michael kors outlet
toms wedges
warriors jerseys
michael kors canada
chenlina20170421
Microsoft has recently released the most stable and efficient windows series , windows 10 is the most stable and updated window with all the needed features. Cortana has been introduced as the windows 10 feature, this works as an assistant for the user.
ReplyDeleteLike the momenent for this online.
ReplyDeleteSmartphones are very important in modern world. Cause you can find everything you want in the Internet. For me it was very helpful when I had to write my college admission essay. I used https://essay4today.com/blog/college-admission-essay to read interesting info about writing.
ReplyDeletesurveillancekart security system
ReplyDeletesurveillancekart cctv installation services
cp plus
Pestveda pest control services
dezigly
The feedgasm Latest News And Breaking News
quicksodes
latest news in hindi
Great Article
ReplyDeleteIEEE Projects on Information Security
Project Centers in Chennai
JavaScript Training in Chennai
JavaScript Training in Chennai
nike foamposite
ReplyDeletefila shoes
longchamp handbags
michael kors factory outlet
nike air max
louboutin outlet
christian louboutin
yeezys
curry shoes
kyrie 5
Our agency is a world class recognized academic Custom Term Paper Writing Services provider with a goal of helping students to handle their assignment writing help more effectively.
ReplyDeleteGreat Article
ReplyDeleteNetwork Security Projects for CSE
JavaScript Training in Chennai
Project Centers in Chennai
JavaScript Training in Chennai
Many time students believe that just by saying 'do my coursework for me' and paying a certain amount will make them relieved of all the tensions related to their coursework and academia https://manyessays.com/.
ReplyDeleteHey! I have found one cool writing service that helped a lot with the writing papers. This servie offer help with the wiritng papers and also it is possible to buy expository essay online
ReplyDeleteدانلود آهنگ سینا پارسیان شکاف
ReplyDeleteشهاب تیام دوستت دارم
Every student should get access to our Economics Essay Writing Services because we have professional writers who deliver Economics Dissertation Writing Services as well as offer Affordable academic Help Online that are original and authentic.
ReplyDeleteThis information is very useful for online business owners, and they can improve their business in very short time. This is a positive step towards success in online marketplace. Dissertation proposal writing services.
ReplyDeleteĐại lý vé máy bay Aivivu, tham khảo
ReplyDeletegiá vé máy bay đi Mỹ khứ hồi
vé máy bay tết 2021 Vietjet
săn vé máy bay giá rẻ đi canada
mua vé máy bay đi Pháp
vé máy bay khứ hồi đi Anh
web săn vé máy bay giá rẻ
combo du lịch đà nẵng
combo nha trang vinpearl
visa trung quốc giá rẻ
giá dịch vụ cách ly tại khách sạn