Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-06-2003, 01:47 PM   #1
Registered: Dec 2003
Posts: 37

Rep: Reputation: 15
Apache custom 404 documents

My apache server is up (on Mandrake 9)

i would like to create custom 404 error pages.
It works, but not completly and i cant find what im doing wrong.

I added the folowing in my httpd.conf file:

<Directory /var/www/html/errors>
AllowOverride none
Options MultiViews IncludesNoExec FollowSymLinks
AddType text/html .shtml image/jpg .jpg
AddHandler server-parsed .shtml images .jpg

ErrorDocument 404 /errors/404.html

when i try try to reach a non existing page on my server with my web browser, the page shows up, but the images wont load

you have any idea what im doing wrong ?

btw the links to the images are good, they are in the same directory as my 404.html file


Last edited by Punker51; 12-06-2003 at 03:40 PM.
Old 12-06-2003, 02:06 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
I haven't fiddled with apache in ages,
but could it be that the
AddType clause can only hold one type
per line? Try making that two statements.

Old 12-06-2003, 03:23 PM   #3
Registered: Dec 2003
Posts: 37

Original Poster
Rep: Reputation: 15
nope...not working
any other suggestions ?

EDIT: i changed my images link from /img/1.jpg to and now it works

thx anyway

Last edited by Punker51; 12-06-2003 at 03:39 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
why is apache giving me a 404 error linuxmandrake Linux - Software 4 06-17-2005 09:16 AM
odd Apache 404 error Seventh Linux - Software 1 03-27-2005 03:43 AM
Apache error with xml documents Rascale Linux - Software 0 09-20-2004 02:14 PM
trailing slash in Apache gives 404 errors rabbate Linux - General 6 04-30-2004 08:34 AM
unable to view documents from my apache server wendallsan Linux - Software 2 09-27-2003 03:13 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:25 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration