Forum OpenACS Q&A: Problem with logo in default-master.adp under https


Please forgive me if I am being daft.
I have a new installation of the most recent CVS openacs-4.6 and I have configured https and tested it.


I then modified '/web/server4/www/default-master.adp' to include a single cell table with a logo....


(# replaces < to avoid problems submitting message)


#table border="0" cellpadding="0" cellspacing="0" width="100%" bgcolor="#00000080">
   #tr>
      #td width="100%">#img src="/Logo_03.jpg" width="350" height="100">#/td>
   #/tr>
#/table>


If I connect using http the whole openacs works fine and the template works throughout the registration and admin sections. A right click on the logo in the browser reveals the path to the source .jpg of :

http://www.server4.com/Logo_03.jpg

The file

'/Logo_03.jpg'
is stored in
'/web/server4/www/'


The problem arises if I connect using httpS on

'https://www.server4.com:8446'

The page loads with no logo and a broken link red cross. A right click on the space where the logo should be tells me that the path is :

'https://www.server4.com:8446/Logo_03.jpg
which in my obvious stupidity I expected to work. I thought that it would not matter whether I was connected using http or https as long as the file path was relative to the server page root.


Can anyone please help by explaining why https renders the logo .jpg invisible.


Please accept my apologies if I am being blind/stupid!

Best Regards

Richard

Collapse
Posted by Bart Teeuwisse on
Richard,

the image is not showing because you lack permissions to retrieve it with a secure connection.

This problem has been discussed before, a simple search for 'image' and 'https' would have pointed you to other threads (https://openacs.org/forums/message-view?message_id=45230).

The solution is to add you image location to ad_login_page.

/Bart

Bart,
As ever, thank you very much for your guidance. I did spend several hours searching the fora but my search strings must have been either too specific or just unluckily not quite right.
Regards Richard
Collapse
Posted by Bart Teeuwisse on
Richard,

you are most welcome.

/Bart