Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old October 7th, 2005   #1
GraemeWorthy
First Cup of Ubuntu
 
Join Date: Sep 2005
Beans: 2
Apache2 is sending deleted files as mimetype application/x-trash

I've got a headache about this.

I've just deleted a file from a directory that I have served by apache.
(it was an index.html file)
and now loading the directory with a browser it starts downloading a file with the mimetype application/x-trash.

wget actually is able to retrieve the deleted file with no problems.
GraemeWorthy is offline   Reply With Quote
Old April 25th, 2006   #2
fr3ak
First Cup of Ubuntu
 
Join Date: Apr 2006
Beans: 1
Re: Apache2 is sending deleted files as mimetype application/x-trash

OK... I spent ages trying to figure it out, the problem only exists for mozilla based browsers (I hate to say it but IE is not affected) but I have found out where the MIME types is found and controlled from... /etc/mime.types in there is where it points to .old .bak etcetera, thinking that this may be the cause i just changed the types to html php... bingo no file trying to be downloaded, but also no page being found at all... so weird. So if you type the whole address http://foo.com/index.html or php it loads the page no problem but if you just try to load the root it can't find the file... so who is being to tricky? Firefox or Apache? Please enlighten him ^ me the rest of the world if you have found a solution.
fr3ak is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:40 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry