![](https://secure.gravatar.com/avatar/cadf6615c5c2172d0672603222e0fc02.jpg?s=120&d=mm&r=g)
Hi,
Overview of all ... mailing links points here to the local ip of the server, where all other links point to the right url.
How can I change that?
Hans
Hans Gubitz <gubitz@netcologne.de>
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
Hans Gubitz wrote:
Do you mean that the hostname in the above text is the IP as in
Overview of all 111.111.111.111 mailing lists?
If that's what you mean, that comes from the list's host_name attribute ("Host name this list prefers for email." near the bottom of the list's General Options page.
If you mean the actual target of that link contains the IP, I don't understand because this is generated the same way as all the other links, e.g the "<listname> administrative interface" link right above it.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/cadf6615c5c2172d0672603222e0fc02.jpg?s=120&d=mm&r=g)
On Wed, Apr 30, 2008 at 01:37:15PM -0700, Mark Sapiro wrote:
The are generated in different ways.
In HTMLFormatter.py I read, that the first two lines of the footer use MailList.GetScriptURL() which returns Utils.ScriptURL, that includes self.web_page_url
The third line - my problem - uses Utils.ScriptURL with exactly one parameter. So web_page_url==None and it is set by get_domain().
That is my problem. get_domain() returns the local ip of my listserver which is a virtual host. May be apache is not configured the right way.
My workaround: Utils.get_domain(): return mm_cfg.DEFAULT_URL_HOST
Hans
-- Hans Gubitz <gubitz@netcologne.de>
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
Hans Gubitz wrote:
All the links are generated by mlist.GetScriptURL()
If VIRTUAL_HOST_OVERVIEW = Yes (the default), Utils.get_domain() returns what the web server set in the environment as HTTP_HOST or SERVER_NAME if there's no HTTP_HOST. This is normally set to the host name portion of the URL that was used to access the page.
If you want to unconditionally return DEFAULT_URL_HOST, don't modify Utils.py. Just set
VIRTUAL_HOST_OVERVIEW = No
in mm_cfg.py.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
Hans Gubitz wrote:
Do you mean that the hostname in the above text is the IP as in
Overview of all 111.111.111.111 mailing lists?
If that's what you mean, that comes from the list's host_name attribute ("Host name this list prefers for email." near the bottom of the list's General Options page.
If you mean the actual target of that link contains the IP, I don't understand because this is generated the same way as all the other links, e.g the "<listname> administrative interface" link right above it.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
![](https://secure.gravatar.com/avatar/cadf6615c5c2172d0672603222e0fc02.jpg?s=120&d=mm&r=g)
On Wed, Apr 30, 2008 at 01:37:15PM -0700, Mark Sapiro wrote:
The are generated in different ways.
In HTMLFormatter.py I read, that the first two lines of the footer use MailList.GetScriptURL() which returns Utils.ScriptURL, that includes self.web_page_url
The third line - my problem - uses Utils.ScriptURL with exactly one parameter. So web_page_url==None and it is set by get_domain().
That is my problem. get_domain() returns the local ip of my listserver which is a virtual host. May be apache is not configured the right way.
My workaround: Utils.get_domain(): return mm_cfg.DEFAULT_URL_HOST
Hans
-- Hans Gubitz <gubitz@netcologne.de>
![](https://secure.gravatar.com/avatar/56f108518d7ee2544412cc80978e3182.jpg?s=120&d=mm&r=g)
Hans Gubitz wrote:
All the links are generated by mlist.GetScriptURL()
If VIRTUAL_HOST_OVERVIEW = Yes (the default), Utils.get_domain() returns what the web server set in the environment as HTTP_HOST or SERVER_NAME if there's no HTTP_HOST. This is normally set to the host name portion of the URL that was used to access the page.
If you want to unconditionally return DEFAULT_URL_HOST, don't modify Utils.py. Just set
VIRTUAL_HOST_OVERVIEW = No
in mm_cfg.py.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Hans Gubitz
-
Mark Sapiro