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

[cobalt-users] Default Cobalt/Apache error (404) images come from https...can this be changed?



I have a Raq4 whatzit.domain.com is the 'home' site.  I added a
self-signed cert to allow the admin server to have a little more
security.  Since that time, all error pages for _any_ domain on
this box will bring up a security alert (in IE anyway) noting that
the cert is from a trusted authority, cert is valid, but name does
not match the site name.

The error page html is delivered prior to the message box, and
looking at the URL, it shows the sitename on which the error
occurred. The image of the question mark in the triangle seems
to be the hang-up and will not display w/o user confirmation.

In the html, the <img> tag points to
/.cobalt/images/question_warning with no https or port 81
reference.

On sites where custom 404's have been created, there are no
issues, as their files are all local to that site.  I really don't want
to create custom 404's for every site, but get questions passed
on from users and admins pretty regularly.

Is there a way to modify the 'default' 404 and other error pages
to point to a copy of the image that does not believe it needs to be
sent on a secure connection?  I'd prefer a solution that does not
require remembering to copy the file into a newly created site's
./web area, as I will likely forget this, or the user may 'clean house'
and zap that file, not knowing it's intended purpose...

the httpd.conf file has a line that looks suspiciously like the key:

RewriteRule ^/.cobalt/(.+)              proto://servername:81/.cobalt/$1
[L,R]

Would adding:

RewriteRule ^/.cobalt/images/(.+)
proto://whatzit.domain.com/error_img/$1 [L,R]

as well as creating the directory /home/sites/home/web/error_img/
and populating it with the error page images fix it?  Would it break
something else like the admin interface?  Or am I totally going up
the wrong tree on this?

-- Paul