[Mailman-Users] Mailman's root path or where to place images
Henrik Rasmussen
her at adm.ku.dk
Thu Jan 18 10:50:41 CET 2007
Thank you Mark. According to my colleague, our Mailman installation is
installed by clicking a checkbox when installing RedHat Linux and it
seems that it somehow doesn't make use of the httpd.conf file (which I
don't understand) since the Script Alias is
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/".
(which is an empty directory) and Mailman's CGI-scripts is contained in
/usr/lib/mailman/cgi-bin/ though you are right about the conflict using
Alias /mailman/ /usr/lib/mailman/
so somehow it must be using httpd.conf anyway. I am totally new to both
Mailman and Apache so I don't yet know how they work.
For now I think i'll scrub the proxy thing, but it would be nice to know
how Mailman corresponds with httpd.conf in the default Redhat
installation.
Henrik
-----Oprindelig meddelelse-----
Fra: Mark Sapiro [mailto:msapiro at value.net]
Sendt: 16. januar 2007 19:35
Til: Henrik Rasmussen; mailman-users at python.org
Emne: Re: [Mailman-Users] Mailman's root path or where to place images
Henrik Rasmussen wrote:
>
>I currently have my mailman icons in an /icons directory relative to
>Apache's root directory.
>
>Example:
>
>Icons is in /var/www/icons/ and the source http path to the icons is
>http://server.xxx.yyy.zz/icons/
>
>In order to put the server behind a proxy server, I need to change the
>directory to http://server.xxx.yyy.zz/mailman/icons/
If it really has to be http://server.xxx.yyy.zz/mailman/icons/ and
http://server.xxx.yyy.zz/something_else/ won't do, I think you have
only one choice. See below.
>By changing the variable IMAGE_LOGOS = '/icons/' to IMAGE_LOGOS =
>'icons/' in the file /usr/lib/mailman/Mailman/mm_cfg.py the http path
is
>seemly relative to Mailman's root
>http://server.xxx.yyy.zz/mailman/icons/
Actually, it is just a relative path in the HTML to which your browser
prepends the current location.
>which I suppose should be
>/usr/lib/mailman/icons/ ,but moving the image file
>/usr/lib/mailman/icons/ still results in a missing image.
>
>My question is, where Mailman's root directory is suppose to be, or
>rather which directory on the server correspond to
>http://server.xxx.yyy.zz/mailman/icons/?
You have something like
ScriptAlias /mailman/ /usr/lib/mailman/cgi-bin/
in your httpd.conf, so http://server.xxx.yyy.zz/mailman/icons/
corresponds to the CGI named icons in the directory
/usr/lib/mailman/cgi-bin/.
Ideally, you could alias it in your Apache httpd.conf with something
like
Alias /mailman/ /usr/lib/mailman/
except this won't work because of the conflict with the ScriptAlias.
If you really need the URL for the icons to be
http://example.com/mailman/icons/, I think you need to create an
'icons' CGI and put it in /usr/lib/mailman/cgi-bin/. This would be a
simple CGI that would just parse the name following
http://example.com/mailman/icons/ in the URL and locate and serve that
file.
There may be some other way to address this in the Apache
configuration, but that's an Apache question that I don't know the
answer to.
--
Mark Sapiro <msapiro at value.net> The highway is for gamblers,
San Francisco Bay Area, California better use your sense - B. Dylan
More information about the Mailman-Users
mailing list