LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 12-06-2003, 02:47 PM   #1
Punker51
Member
 
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
</Directory>

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

thx

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

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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.


Cheers,
Tink
 
Old 12-06-2003, 04:23 PM   #3
Punker51
Member
 
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 http://server.com/img/1.jpg and now it works

thx anyway

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


Reply


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 10:16 AM
odd Apache 404 error Seventh Linux - Software 1 03-27-2005 04:43 AM
Apache error with xml documents Rascale Linux - Software 0 09-20-2004 03:14 PM
trailing slash in Apache gives 404 errors rabbate Linux - General 6 04-30-2004 09:34 AM
unable to view documents from my apache server wendallsan Linux - Software 2 09-27-2003 04:13 PM


All times are GMT -5. The time now is 04:29 AM.

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