You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2007/02/13 06:34:33 UTC
DO NOT REPLY [Bug 41599] New: - 403 and 404 pages display pic twice when using absolute paths to imgs rather than relative
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41599>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41599
Summary: 403 and 404 pages display pic twice when using absolute
paths to imgs rather than relative
Product: Apache httpd-2
Version: 2.2.4
Platform: Other
URL: http://industrialrefuge.org
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: mod_vhost_alias
AssignedTo: bugs@httpd.apache.org
ReportedBy: baillie.joshua@gmail.com
set ErrorDocument in virtualHosts, then use a relative path within the error
document say ,404 for this example, if you type in hostname/pagethatdoesntexist
the custom error document wont show. type in
hostname/folderthatdoesexist/pagethatdoesnt the custom error page will show.
change the custom error page to relative paths, ie css and imgs, then
hostname/pagethatdoesnt exist will show the custom error page. but when you type
in hostname/folder/pagethatdoesntexist you will get your custom error page with
two images instead of the one.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 41599] - 403 and 404 pages display pic twice when using absolute paths to imgs rather than relative
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41599>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41599
------- Additional Comments From basant.kukreja@sun.com 2007-03-07 16:32 -------
Can you provide, your configuration information. I could not reproduce your
problem exactly?
But certainly I was able to reproduce a similar problem.
I configured two virtual host, one for my host IP and another for loopback
interface.
Listen lbasantk3:4024
Listen localhost:4025
DocumentRoot "/disk/apache/bug35981/apache2/htdocs"
VirtualDocumentRoot "/disk/apache/bug35981/apache2/htdocs/%0"
#ErrorDocument 404 /internal/notfound.html
<VirtualHost localhost:4024>
ServerName testHost1
DocumentRoot "/disk/apache/bug35981/apache2/htdocs"
ErrorDocument 404 /internal/notfound.html
</VirtualHost>
<VirtualHost lbasantk3:4025>
ServerName testHost2
DocumentRoot "/disk/apache/bug35981/apache2/htdocs"
ErrorDocument 404 /internal/notfound.html
</VirtualHost>
Now if I don't define ErrorDocument in server level then ErrorDocument in
VirtualHost is totally ignored. ErrorDocument is never displayed. However if I
set the ErrorDocument in server level then both works correctly.
If I try to set different ErrorDocument for virtualhost, it is ignored
totally e.g in.
<VirtualHost lbasantk3:4025>
ServerName testHost2
DocumentRoot "/disk/apache/bug35981/apache2/htdocs"
ErrorDocument 404 /internal1/notfound.html
</VirtualHost>
As far as my experiments shows, I am able to set ErrorDocument differently for
different virtual hosts in separate configuration which is not using
mod_vhost_alias
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 41599] - 403 and 404 pages display pic twice when using absolute paths to imgs rather than relative
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41599>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41599
basant.kukreja@sun.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |basant.kukreja@sun.com
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 41599] - 403 and 404 pages display pic twice when using absolute paths to imgs rather than relative
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41599>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41599
basant.kukreja@sun.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
------- Additional Comments From basant.kukreja@sun.com 2007-03-09 13:20 -------
Joshua,
Can you kindly post your configuration.
After reexamining my configuration, I could not reproduce the issue.
Here is my configuration :
Listen lbasantk3:4024
Listen localhost:4025
DocumentRoot "/disk/apache/bug41599/apache2/htdocs"
ErrorDocument 404 /internal/notfound.html
VirtualDocumentRoot "/disk/apache/bug41599/apache2/htdocs/%0"
<VirtualHost lbasantk3:4024>
ServerName testHost1
ErrorDocument 404 /internal/notfound.html
</VirtualHost>
<VirtualHost localhost:4025>
ServerName testHost2
ErrorDocument 404 /internal1/notfound.html
</VirtualHost>
Two virtual hosts points to separate ErrorDocuments and seems to work fine for me.
All of the following shows the expected results.
curl --dump-header - -o - http://lbasantk3:4024/
curl --dump-header - -o - http://lbasantk3:4024/notfound
curl --dump-header - -o - http://lbasantk3:4024/notfound/abc
curl --dump-header - -o - http://localhost:4025/
curl --dump-header - -o - http://localhost:4025/notfound
curl --dump-header - -o - http://localhost:4025/notfound/abc
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 41599] - 403 and 404 pages display pic twice when using absolute paths to imgs rather than relative
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41599>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41599
fielding@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |RESOLVED
Resolution| |WORKSFORME
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
DO NOT REPLY [Bug 41599] - 403 and 404 pages display pic twice when using absolute paths to imgs rather than relative
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41599>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41599
------- Additional Comments From sander@temme.net 2007-02-12 21:40 -------
*** Bug 41600 has been marked as a duplicate of this bug. ***
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org