On 2024/05/22 18:25, Mark Sapiro wrote:
On 5/22/24 11:31 AM, Andy Macheta wrote:
Hi Mark,
Thanks; yes those 4 steps were performed. It looks like all the web pages are displaying is just text; so there's no background (apart from white) and no icons or graphics....almost like CCS is not being recognized perhaps.
If pages are not styled and you have run the collectstatic and compress jobs, the most likely cause is your web server not finding the static/ directory. See https://docs.mailman3.org/en/latest/install/virtualenv.html#apache-configura... and check your Apache logs for 404s
I had the same issue with the reverse proxy. Here's my final working Debian apache2 virtualhost file:
jeff@maya:~$ cat /etc/apache2/sites-enabled/holeinthewall.conf <VirtualHost *:80> ServerName lists.holeinthewall.org.za ServerAlias mail.holeinthewall.org.za
# Redirect all HTTP traffic to HTTPS RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{SERVER_NAME}$1 [R=301,L] </VirtualHost>
<VirtualHost *:443> ServerAdmin webmaster@holeinthewall.org.za ServerName lists.holeinthewall.org.za
# Enable SSL/TLS SSLCertificateFile /etc/letsencrypt/live/holeinthewall.org.za/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/holeinthewall.org.za/privkey.pem Include /etc/letsencrypt/options-ssl-apache.conf
# Enable SSL proxying SSLProxyEngine On SSLProxyVerify None SSLProxyCheckPeerCN Off SSLProxyCheckPeerName Off SSLProxyCheckPeerExpire Off
# Preserve the Host header ProxyPreserveHost On
# Correct the domain in the Set-Cookie header from 127.0.0.1 to lists.holeinthewall.org.za ProxyPassReverseCookieDomain 127.0.0.1 lists.holeinthewall.org.za
# Serve static content directly from the filesystem DocumentRoot /opt/mailman/web/static Alias /static "/opt/mailman/web/static" <Directory "/opt/mailman/web/static"> Require all granted </Directory>
# Proxy configuration <Proxy *> Require all granted </Proxy>
# Ensure X-Forwarded-Proto is set correctly RequestHeader set X-Forwarded-Proto expr=%{REQUEST_SCHEME}
# ProxyPass configuration for specific paths ProxyPass /static ! ProxyPass / http://127.0.0.1:8000/ ProxyPassReverse / http://127.0.0.1:8000/ ProxyPass "/mailman3" "http://127.0.0.1:8000/mailman3" ProxyPass "/archives" "http://127.0.0.1:8000/archives" ProxyPass "/accounts" "http://127.0.0.1:8000/accounts" ProxyPass "/admin" "http://127.0.0.1:8000/admin" ProxyPass "/user-profile" "http://127.0.0.1:8000/user-profile"
# Logging ErrorLog /var/log/apache2/holeinthewall_error.log CustomLog /var/log/apache2/holeinthewall_access.log combined </VirtualHost>
HTH
--
Kind regards,
Jeff Brown
WildCoast WebWorx m: +27 74 101 5170 <tel:+27%2074%20101%205170> v: +27 87 550 1210 <tel:+27%2087%20550%201210> a: Hole in the Wall, South Africa w: www.wildcoast.com <http://www.wildcoast.com/> e: webmaster@wildcoast.com
Mailman's content filtering has removed the following MIME parts from this message.
Content-Type: image/png Name: homcljipmaiefjea.png
Replaced multipart/alternative part with first alternative.