www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Weinstein <rw...@is7.NYU.EDU>
Subject general/4612: ErrorDocument handling of relative directory's
Date Sat, 19 Jun 1999 14:55:05 GMT

>Number:         4612
>Category:       general
>Synopsis:       ErrorDocument handling of relative directory's
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Class:          sw-bug
>Submitter-Id:   apache
>Arrival-Date:   Sat Jun 19 09:10:00 PDT 1999
>Originator:     rw263@is7.NYU.EDU
>Release:        1.2.x AND 1.3.x
if one uses the ErrorDocument directive, the file that the directive specifies 
must be absolute directories (relative ones don't work). For example, if I call
an image, <img src="test.gif"> that image wouldn't appear if the url that called 
the error document wasn't in the same directory. I would need to specify,
<img src"/path/to/test.gif">, for this to work correctly. The server is using 
the url that has been accessed and only the HTML page that is being outputted.
If a path is included in the ErrorDocument than that path should be included in
the execution.

 ErrorDocument 404 /path/to/notfound.html
 when accessing url, http://www.here.org/random/directory/file.html. Since 
 file.html doesn't exist, notfound.html is shown since this causes a 404 file 
 not found error. However, this is called with: 
 when it SHOULD be called with:
 since the /path/to, was included in the ErrorDocument. 

The current functionality only be utilitized if no path is specified:
 ErrorDocument 404 notfound.html
Since I could see a time when multiple errordocument error messages would be
used (authentication failure for example). However, if an ErrorDocument is 
called with a path, that path should be used in the viewing.


[In order for any reply to be added to the PR database, you need]
[to include <apbugs@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or      ]
["Re: general/1098:").  If the subject doesn't match this       ]
[pattern, your message will be misfiled and ignored.  The       ]
["apbugs" address is not added to the Cc line of messages from  ]
[the database automatically because of the potential for mail   ]
[loops.  If you do not include this Cc, your reply may be ig-   ]
[nored unless you are responding to an explicit request from a  ]
[developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]

View raw message