Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem serving .pdf files

Status
Not open for further replies.

LawnBoy

MIS
Mar 12, 2003
2,881
Have just loaded Apache 2.0.47-63 on SuSE 9.0. When I click on a link in my browser (IE 6.0) to view a .pdf, I get a popup from Adobe Acrobat saying "File does not begin with '%PDF-'."

Error log shows nothing. Access log shows:
Code:
10.118.36.21 - - [08/Feb/2005:11:04:29 -0600] "GET /inet_usage.pdf HTTP/1.1" 200 63483 "[URL unfurl="true"]http://10.118.36.11"[/URL] "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; CW20030114)"

10.118.36.21 - - [08/Feb/2005:11:04:29 -0600] "GET /inet_usage.pdf HTTP/1.1" 206 56483 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; CW20030114)"
If I now simply click reload in my browser I get the .pdf with no problem, and the access log shows:
Code:
10.118.36.21 - - [08/Feb/2005:11:14:18 -0600] "GET /inet_usage.pdf HTTP/1.1" 200 63483 "-" "contype"

10.118.36.21 - - [08/Feb/2005:11:14:18 -0600] "GET /inet_usage.pdf HTTP/1.1" 206 63483 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; CW20030114)"
This is happening with multiple .pdf files. The same .pdf files serve up just fine on Netware6.5/Apache2 and on IIS. I have given the files all rights.

Can somebody buy me a clue? Thanks in advance.
 
I have found a solution. In the file /etc/mime.types there is a line that says
Code:
application/pdf
Replace that with
Code:
application/x-pdf
...and everything works like it's supposed to.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top