ErrorDocument directory hierarchy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



VirtualHost on 2.4.29-1ubuntu4.13. .conf includes :
    DocumentRoot "/www/mysite"
    /.../
    ErrorDocument 404 /error/404.html

The 404.html has :
    <link rel="stylesheet" type="text/css" href="../css/general.css">

Works perfectly for 404s at DocumentRoot level, but fails for subdirectories eg DocumentRoot/foo/bar/mypages. Error logs show:

   "GET /bar/css/general.css HTTP/1.1" 404 5245 "-" etc...

Apache finds the text of the custom 404 at the DocRoot reference, but apparently interprets the <link rel= as being "rel" to the missing page, so does not format the text. The client "page source" shows the correct relative path.

Note, I can "work around" this by putting the full URL in the VirtualHost, but I would truly appreciate a solution to my difficulties with the plain "ErrorDocument 404 /error/404.html"

Thanks -- Paul



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux