Oct. 15, 2026
11:05 p.m.
Yes, ProxyPreserveHost is On
by way of the haproxy, where:
backend mailman3
mode http
option forwardfor if-none
server server_mailman3 172.17.0.63:80
for context, this is the apache2 config:
<VirtualHost *:80>
ServerName lists02.campaignfoundations.com
ServerAlias lists.campaignfoundations.com
ServerAdmin hesco@campaignfoundations.com
Alias /mailman3/static "/opt/mailman/web/static"
<Location /mailman3/static>
Require all granted
</Location>
<IfModule mod_proxy.c>
ProxyPreserveHost On
ProxyPass "/mailman3/static" !
ProxyPass "/mailman3/" "http://127.0.0.1:8000/mailman3/"
ProxyPassReverse "/mailman3/" "http://127.0.0.1:8000/mailman3/"
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"
</IfModule>
# Possible values include: debug, info, notice, warn, error, crit, alert, emerg.
LogLevel warn
LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" common
CustomLog /var/log/apache2/lists02.campaignfoundations.com-access.log combined
ErrorLog /var/log/apache2/lists02.campaignfoundations.com-error.log
</VirtualHost>
Mark Sapiro wrote:
This should work. How is your web server accessing Postorius? Is it passing the hostname? I.e., proxy_set_header Host $host; for nginx or ProxyPreserveHost On for Apache.
Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan