Skip to content
Snippets Groups Projects
Verified Commit 89feea62 authored by David Beniamine's avatar David Beniamine
Browse files

Restore wwsympa after upgrade

parent 8c0b40ab
Branches
No related tags found
No related merge requests found
...@@ -10,14 +10,12 @@ RUN apt-get -y update && apt-get -y upgrade && apt-get -y install \ ...@@ -10,14 +10,12 @@ RUN apt-get -y update && apt-get -y upgrade && apt-get -y install \
libfcgi-perl \ libfcgi-perl \
nullmailer \ nullmailer \
openssh-server \ openssh-server \
spawn-fcgi \
sudo \ sudo \
supervisor supervisor
RUN apt-get -y install --no-install-recommends sympa RUN apt-get -y install --no-install-recommends sympa
RUN a2enconf sympa-soap
RUN a2enconf sympa
RUN touch /var/log/sympa.log && chown sympa:sympa /var/log/sympa.log && chmod 640 /var/log/sympa.log RUN touch /var/log/sympa.log && chown sympa:sympa /var/log/sympa.log && chmod 640 /var/log/sympa.log
...@@ -27,7 +25,7 @@ RUN cp -r /etc/sympa /etc/sympa.sample ...@@ -27,7 +25,7 @@ RUN cp -r /etc/sympa /etc/sympa.sample
COPY default.conf /etc/apache2/sites-available/000-default.conf COPY default.conf /etc/apache2/sites-available/000-default.conf
RUN a2enmod rewrite substitute RUN a2enmod rewrite substitute alias proxy proxy_fcgi
COPY supervisord.conf /etc/supervisor/conf.d COPY supervisord.conf /etc/supervisor/conf.d
......
...@@ -20,37 +20,23 @@ ...@@ -20,37 +20,23 @@
ErrorLog ${APACHE_LOG_DIR}/error.log ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined CustomLog ${APACHE_LOG_DIR}/access.log combined
# Sympa pretty urls
RewriteEngine on <Location /static-sympa>
# Do not redirect static, css and pictures Require all granted
RewriteCond %{REQUEST_URI} !^/(static|css|pictures)-sympa/.* </Location>
RewriteCond %{REQUEST_URI} !^/sympasoap.* Alias /static-sympa /usr/share/sympa/static_content/
# Avoid redirect loops
RewriteCond %{REQUEST_URI} !^/wws.* <Location /sympasoap>
# Prepend wws SetHandler "proxy:unix:/var/run/sympa/sympasoap.socket|fcgi://"
RewriteRule (.*) /wws$1 [PT,QSA] Require all granted
</Location>
# Remove /wws/ in html output
<Location "/">
AddOutputFilterByType SUBSTITUTE text/html <Location /sympa>
Substitute "s|/wws/|/|" SetHandler "proxy:unix:/var/run/sympa/wwsympa.socket|fcgi://"
Require all granted
</Location> </Location>
# Hide direct access to /wws with 307 to preserve data and method
RewriteCond %{REQUEST_URI} ^/wws.*
RewriteCond %{REQUEST_URI} !^/(static|css|pictures)-sympa/.*
RewriteCond %{REQUEST_URI} !^/sympasoap.*
RewriteRule /wws(.*) $1 [L,QSA,R=307]
# For debug purposes, uncomment this line
# LogLevel alert rewrite:trace6 substitute:trace6
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost> </VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
...@@ -95,3 +95,24 @@ stdout_logfile_maxbytes=0 ...@@ -95,3 +95,24 @@ stdout_logfile_maxbytes=0
stderr_logfile_maxbytes=0 stderr_logfile_maxbytes=0
stdout_logfile=/dev/stdout stdout_logfile=/dev/stdout
stderr_logfile=/dev/stderr stderr_logfile=/dev/stderr
[program:wwsympa]
command=/usr/bin/spawn-fcgi -n -F 5 -P /var/run/sympa/wwsympa.pid -u sympa -g sympa -s /var/run/sympa/wwsympa.socket -M 0600 -U www-data -- /usr/lib/cgi-bin/sympa/wwsympa.fcgi
autostart=true
stdout_events_enabled=true
stderr_events_enabled=true
stdout_logfile_maxbytes=0
stderr_logfile_maxbytes=0
stdout_logfile=/dev/stdout
stderr_logfile=/dev/stderr
[program:wwsympasoap]
command=/usr/bin/spawn-fcgi -n -F 5 -P /var/run/sympa/sympasoap.pid -u sympa -g sympa -s /var/run/sympa/sympasoap.socket -M 0600 -U www-data -- /usr/lib/cgi-bin/sympa/sympa_soap_server.fcgi
autostart=true
stdout_events_enabled=true
stderr_events_enabled=true
stdout_logfile_maxbytes=0
stderr_logfile_maxbytes=0
stdout_logfile=/dev/stdout
stderr_logfile=/dev/stderr
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment