List Info

Thread: Relative path rather than absolute???




Relative path rather than absolute???
user name
2007-04-16 10:50:10
Difficulty with list creation procedures.

My webserver is intended to host a number of sites each one
of which will 
provide, among other things,maillists. The primary site is
www.vizion200.net.
Access to www.vizion2000.net/mailman/create responds with
the result that the 
mailing list has been created. The source code read by the
browser,for the 
page is shown below:

<HTML>
<HEAD>
<LINK REL="SHORTCUT ICON"
HREF="/usr2/virtualwebs/icons/mm-icon.png">
<META http-equiv="Content-Type"
content="text/html; charset=us-ascii">
<TITLE>Mailing list creation results</TITLE>
</HEAD>
<BODY bgcolor="white">

<table WIDTH="100%" BORDER="0">
  <tr>
    <td
BGCOLOR="#99ccff"><center><strong>&
lt;font size="+1">Mailing list
creation
results</font></strong></center></td>
;
  </tr>
  <tr>
    <td>You have successfully created the mailing
list
    <b>mytest6</b> and notification has been
sent to the list owner
    <b>davidvizion2000.net</b>.  You can
now:</td>
  </tr>
  <tr>
    <td>
        <ul>
        <li><a
href="http://www.vizion2000.net/mailman/listinfo/myte
st5">Visit the list's
info page</a>
        <li><a href="http://www.vizion2000.net/mailman/admin/mytest5&qu
ot;>Visit
the list's admin page</a>
        <li><a href="http://www.vizion2000.net/mailman/create">Create

another list</a>
        </ul>
</td>
  </tr>
</table>
<hr>Return to the <a
href="http://www.vizion2000.net/mailman/listinfo">g
eneral list
overview</a><br>Return to the <a
href="http://www.vizion2000.net/mailman/admin">
administrative list
overview</a>
<table WIDTH="100%" BORDER="0">
  <tr>
    <td><img
src="/usr2/virtualwebs/icons/mailman.jpg"
alt="Delivered by
Mailman" border=0><br>version
2.1.9</td>
    <td><img
src="/usr2/virtualwebs/icons/PythonPowered.png"
alt="Python
Powered" border=0></td>
    <td><img
src="/usr2/virtualwebs/icons/powerlogo.gif"
alt="Powered by
FreeBSD" border=0></td>
  </tr>
</table>

</BODY>
</HTML>

Each of the above referrer lines for the img_src are shown
with the absolute 
path correctly specified in the page source.
-------------------------------------------------------

However the apache server is receiving incorrect path
requests from mailman:
____________________________________________________________
___________

[Mon Apr 16 08:28:18 2007] [error] [client 192.168.15.1]
File does not 
exist: /usr2/virtualwebs/vizion2000.net/usr2, referer:
                                                           
^^
 http://www.v
izion2000.net/mailman/create
[Mon Apr 16 08:28:18 2007] [error] [client 192.168.15.1]
File does not 
exist: /usr2/virtualwebs/vizion2000.net/usr2, referer: 
http://www.v
izion2000.net/mailman/create
[Mon Apr 16 08:28:18 2007] [error] [client 192.168.15.1]
File does not 
exist: /usr2/virtualwebs/vizion2000.net/usr2, referer: 
http://www.v
izion2000.net/mailman/create
[Mon Apr 16 08:28:54 2007] [error] [client 192.168.15.1]
File does not 
exist: /usr2/virtualwebs/vizion2000.net/usr2, referer: 
http://www.v
izion2000.net/mailman/create
[Mon Apr 16 08:28:54 2007] [error] [client 192.168.15.1]
File does not 
exist: /usr2/virtualwebs/vizion2000.net/usr2, referer: 
http://www.v
izion2000.net/mailman/create
[Mon Apr 16 08:28:54 2007] [error] [client 192.168.15.1]
File does not 
exist: /usr2/virtualwebs/vizion2000.net/usr2, referer: 
http://www.v
izion2000.net/mailman/create

__________________________________________

It looks as though mailman is trying to add whole or part of
the absolute path 
to the absolute path!! weird.
_______________________________
When I checked the properties for each of the three icons at
the bottom of the 
mail list creation page I found that the sought path is, for
example:
http://www.vizion2000.net/usr2/virtualwebs/ico
ns/PythonPowered.png
but should be
/usr2/virtualwebs/icons/PythonPowered.png

The relevant line in mm_cfg.py
IMAGE_LOGOS = '/usr2/virtualwebs/icons/'

I am not certain whether it may/maynot help to know that all
web sites are 
located at the absolute paths
/usr2/virtualwebs/<my.domain.ain>.

Freebsd 6.1
Postfix
Apache22
Thanks in advance 

David
------------------------------------------------------
Mailman-Users mailing list
Mailman-Userspython.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.p
ython.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: http://mail.python.org/mailman/options/mail
man-users/bond%40yahoo.com

Security Policy: http://www.python.org/cgi-bin/faqw-m
m.py?req=show&amp;file=faq01.027.htp

Re: Relative path rather than absolute???
country flaguser name
United States
2007-04-16 11:36:21
David Southwell wrote:
> Difficulty with list creation procedures.


If I understand what follows, the problem is not with list
creation, but 
rather it is with the icon images on all Mailman web pages.

<snip>
>     <td><img
src="/usr2/virtualwebs/icons/mailman.jpg"
alt="Delivered by
> Mailman" border=0><br>version
2.1.9</td>
>     <td><img
src="/usr2/virtualwebs/icons/PythonPowered.png"
alt="Python
> Powered" border=0></td>
>     <td><img
src="/usr2/virtualwebs/icons/powerlogo.gif"
alt="Powered by
> FreeBSD" border=0></td>
<snip>

> Each of the above referrer lines for the img_src are
shown with the absolute 
> path correctly specified in the page source.

But it is not the path which will get Apache to the icons
because Apache 
is going to prepend the DocumentRoot

>
-------------------------------------------------------
> 
> However the apache server is receiving incorrect path
requests from mailman:


Because you told Mailman to do this.


> It looks as though mailman is trying to add whole or
part of the absolute path 
> to the absolute path!! weird.


Not Mailman, Apache.

> _______________________________
> When I checked the properties for each of the three
icons at the bottom of the 
> mail list creation page I found that the sought path
is, for example:
> http://www.vizion2000.net/usr2/virtualwebs/ico
ns/PythonPowered.png
> but should be
> /usr2/virtualwebs/icons/PythonPowered.png
> 
> The relevant line in mm_cfg.py
> IMAGE_LOGOS = '/usr2/virtualwebs/icons/'


Which is the root of the problem. If you remove this line
from 
mm_cfg.py, you will be left with the Defaults.py setting

IMAGE_LOGOS = '/icons/'

This then will be matched by the

Alias /icons/ "/usr2/virtualwebs/icons/"

that probably exists in the Apache configuration. I may have
the details 
of this path wrong, but the idea is that there is already an
alias in 
the Apache configuration that points to Apache's icons. You
add 
Mailman's icon files to Apache's icons directory, and if
necessary, you 
set IMAGE_LOGOS to match Apache's alias for icons.

-- 
Mark Sapiro <msapirovalue.net>       The highway is for
gamblers,
San Francisco Bay Area, California    better use your sense
- B. Dylan
------------------------------------------------------
Mailman-Users mailing list
Mailman-Userspython.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.p
ython.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: http://mail.python.org/mailman/options/mail
man-users/bond%40yahoo.com

Security Policy: http://www.python.org/cgi-bin/faqw-m
m.py?req=show&amp;file=faq01.027.htp

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )