6 messages in net.sourceforge.lists.courier-users[courier-users] Images not appearing ...
FromSent OnAttachments
John BossertApr 18, 2004 4:11 pm 
John BossertApr 19, 2004 11:24 am 
Mitch (WebCob)Apr 19, 2004 1:11 pm 
Drew GibsonApr 19, 2004 1:59 pm 
Sam VarshavchikApr 19, 2004 3:38 pm 
John BossertApr 19, 2004 4:54 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] Images not appearing in webmail pages - RESOLVEDActions...
From:John Bossert (jbos@affidian.com)
Date:Apr 19, 2004 4:54:41 pm
List:net.sourceforge.lists.courier-users

The problem(?) seems to be Apache-related. Apparently, having a ScriptAlias entry with the same name as a DocumentRoot subdirectory causes the subdirectory to not be searched for images, etc., without generating any errors. This may be an "Oh, didn't you know...", but I didn't.

Changing the target from "/webmail" to "/mail" solved the problem. Diffs follow. Note the the original text was already in my httpd.conf file, I believe as a result of the Courier installation process.

625,626c625,626 < ScriptAlias /webadmin "/opt/apache/cgi-bin/webadmin" < ScriptAlias /mail "/opt/apache/cgi-bin/webmail"

---

ScriptAlias /webadmin "/usr/sbin/courier/webmail/webadmin" ScriptAlias /webmail "/usr/sbin/courier/webmail/webmail"

After getting things to work with "real" directories and files, I

1) Created a symlink (webmail) under htdocs pointing to the Courier /icons directory.

2) Created symlinks from cgi-bin to webmail and webadmin

All now seems to work. Apache wizards, Sam? - without going too far off topic, is this something that should be documented/warned about in the INSTALLATION guide?

Thanks to all for their suggestions.

I'm not able to get images/icons to display in webmail, though I am able to log in and see text/my mail, change passwords, etc. Using 0.45.4 built from source on Debian. Webadmin seems to work fine.

Stock Apache 2.0.49 httpd.conf file with the following additions:

ScriptAlias /webadmin "/usr/sbin/courier/webmail/webadmin" ScriptAlias /webmail "/usr/sbin/courier/webmail/webmail"

The webmail and webadmin executables have been copied to cgi-bin, per the INSTALL directives, even though the ScriptAlias definitions would seem to make that unnecessary.

Creating the /opt/apache/htdocs/webmail directory and copying the .png files there has no effect. I see the same thing if the directory doesn't exist. There are no errors appearing in the apache logs.

Bouncing apache and sqwebmaild didn't change anything.

Any suggestions? Thanks.