Skip to Content.
Sympa Menu

en - Re: [sympa-users] virtual hosting - is it mandatory to have different vhosts for the web site?

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Hatuka*nezumi - IKEDA Soji <address@concealed>
  • To: address@concealed
  • Subject: Re: [sympa-users] virtual hosting - is it mandatory to have different vhosts for the web site?
  • Date: Thu, 5 Dec 2013 15:23:51 +0900

Hi Dick,

According to the manual, following configuration will be possible,
although I indivisually haven't managed any systems with it:

$confdir/terena.org/robot.conf:
---------------------------------------------------------------
host terena.org
wwsympa_url https://lists.terena.org/terena.org
http_host lists.terena.org/terena.org
---------------------------------------------------------------

$confdir/redfeds.org/robot.conf:
---------------------------------------------------------------
host redfeds.org
wwsympa_url https://lists.terena.org/redfeds.org
http_host lists.terena.org/redfeds.org
---------------------------------------------------------------

Apache conf:
---------------------------------------------------------------
<Directory /var/www/sympa>
SetHandler fcgid-script
</Directory>
Alias /static-sympa /var/lib/sympa/static_content
ScriptAlias /terana.org /usr/libexec/sympa/wwsympa-wrapper.fcgi
ScriptAlias /redfeds.org /usr/libexec/sympa/wwsympa-wrapper.fcgi
---------------------------------------------------------------

Note:
- Probably subdiretory of $confdir/ must be same as host, e-mail
domain.
- URL path of wwsympa_url, http_host and ScriptAlias must be same,
but not neccessarily be same as e-mail domain.

Though, as you said, such a configuration is a bit difficult and
redundant. I wish more easy way, too.


Regards,

--- Soji


On Mon, 2 Dec 2013 15:29:19 +0100
Dick Visser <address@concealed> wrote:

> Hi Ettienne
>
> I'm still fiddling with the initial vhost setup, I can't get it to work...
>
> Let me try to explain better.
> First of all I'd like the web interface to be reachable on a single
> FQDN, in our case lists.terena.org.
>
> Now, given that the /sympa path is somehow mandatory (I won't fiddle
> with that any more), the URL for the default web interface should be
> https://lists.terena.org/sympa.
>
> This is without configuring vhosts in Sympa, so the configuration is
> done through sympa.conf, and in the list dir there are only lists.
>
> However, I'd like to have a system that only has vhosts.
>
> So, e-mail domains and URLs should behave like this:
>
>
> terena.org -> https://lists.terena.org/sympa/terena.org
> refeds.org -> https://lists.terena.org/sympa/refeds.org
>
> I'm trying to set up vhosts with subdirectories named like the e-mail
> domain:
>
> /etc/sympa/terena.org/robot.conf
> /etc/sympa/refeds.org/robot.conf
>
>
> The next question is what to configure in these robot.conf?
> The file has this comment:
>
> ## This hostname will be compared with 'SERVER_NAME' ENV var in wwsympa.fcgi
> ## To deduce which Virtual Robot is being queried
> host
> http_host
>
> Which leads me to believe that there is indeed a coupling between the
> web site vhost name, and the e-mail domain... which is not what I
> want.
>
> I configured dummy values for 'host' and 'http_host' in sympa.conf,
> and put this in /etc/sympa/refeds.org/robot.conf:
>
> host lists.terena.org
> http_host lists.terena.org/sympa/refeds.org/sympa
>
> And this in /etc/sympa/terena.name/robot.conf:
>
> host lists.terena.org
> http_host lists.terena.org/sympa/terena.name/sympa
>
>
> This looks like it's going to clash because both file have the same
> value for 'host'.
>
>
> Still pretty confused...
>
> On 20 November 2013 16:58, Etienne MELEARD <address@concealed>
> wrote:
> > Hi,
> >
> > You can do it !
> >
> > All you have to do is to use lists.terena.org/terena.org and
> > lists.terena.org/refeds.org as http_host parameters in your robot.conf
> > files.
> >
> > Regrads,
> >
> > Etienne
> >
> >
> > Le 20/11/13 16:49, Dick Visser a écrit :
> >
> >> Hi guys
> >>
> >>
> >> I'm trying to set up vhosting for sympa.
> >>
> >> I'd like to be able to run Sympa lists for a number of domains.
> >> >From the docs at http://www.sympa.org/manual_6.2/virtual-hosts it
> >> looks like every mail domain needs a different HTTP vhost as well,
> >> which is not very convenient. Especially when hosting lots of domains,
> >> if you name the vhosts inside that domain, then we'd have to renew the
> >> HTTPS certificate every time.
> >> I'd like to web interface to be reachable at one hostname, and manage
> >> the different domains through different paths.
> >> My previous question about running the web interface on the root URL
> >> was answered with "no can't do", but I think I should be able to put
> >> that restriction to use.
> >> For instance I'd like the sympa web interface for terena.org to be
> >> reachable at https://lists.terena.org/terena.org/
> >> And for another domain the lists could be managed at
> >> https://lists.terena.org/refeds.org/
> >>
> >> Before I go do the usual trial&error, would this be possible at all?
> >>
> >> Many thanks!!
> >>
> >>
> >
>
>
>
> --
> Dick Visser
> System & Networking Engineer
> TERENA Secretariat
> Singel 468 D, 1017 AW Amsterdam
> The Netherlands
>


--
--- nezumi



Archive powered by MHonArc 2.6.19+.

Top of Page