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: Dick Visser <address@concealed>
  • To: Steve Shipway <address@concealed>
  • Cc: "address@concealed" <address@concealed>
  • Subject: Re: [sympa-users] virtual hosting - is it mandatory to have different vhosts for the web site?
  • Date: Wed, 4 Dec 2013 12:10:53 +0100

Hi Steve

I will try this work-around, if it works that'd be great.

Thanks

On 3 December 2013 22:31, Steve Shipway <address@concealed> wrote:
> Can you do it by using some creative matching and env var overrides in the
> Apache config?
>
> IE:
>
> You have terena.org and refeds.org, and have defined these as separate
> robots in Sympa.
>
> Terena.org/robot.conf
> http_host terena.org
> host terena.org
> wwsympa_url https://lists.terena.org/terena.org/sympa
> static_content_url /static-sympa
>
> Refeds.org/robot.conf
> http_host refeds.org
> host refeds.org
> wwsympa_url https://lists.terena.org/refeds.org/sympa
> static_content_url /static-sympa
>
> This sets up both robots to expect separate hostnames, and have their own
> URL for dynamic content
>
> In apache, set this or similar:
>
> SetEnvIf Request_URI
> ^https?://lists\.terena\.org/(terena.org|refeds.org)/sympa SERVER_NAME=$1
> Alias /static-sympa /var/lib/sympa/static_content
> ScriptAlias /terena.org/sympa /var/www/sympa/wwsympa-wrapper.fcgi
> ScriptAlias /refeds.org/sympa /var/www/sympa/wwsympa-wrapper.fcgi
> <Directory /var/www/sympa>
> SetHandler fcgid-script
> </Directory>
>
> This will override SERVER_NAME to be the first component of the URI path,
> so although they are all on the same Apache virtual host (lists.terena.org)
> the CGI interface will be given a different SERVER_NAME which is then
> picked up by Sympa.
>
> The SetEnvIf is the magic bit that replaces multiple Apache vhosts with a
> URL path component. As far as Sympa knows, it is running on a separate
> apache vhost.
>
> Steve
>
> Steve Shipway
> ITS Unix Services Design Lead
> University of Auckland, New Zealand
> Floor 1, 58 Symonds Street, Auckland
> Phone: +64 (0)9 3737599 ext 86487
> DDI: +64 (0)9 923 6487
> Mobile: +64 (0)21 753 189
> Email: address@concealed
>  Please consider the environment before printing this e-mail :
> 打印本邮件,将减少一棵树存活的机会
>



--
Dick Visser
System & Networking Engineer
TERENA Secretariat
Singel 468 D, 1017 AW Amsterdam
The Netherlands




Archive powered by MHonArc 2.6.19+.

Top of Page