Hi, Mark, Odhiambo and list!
Thanks for your feedback.
Here is the web configuration. Thank you for taking your time to investigate.
The domain that works:
<VirtualHost *:80> AddDefaultCharset UTF-8 ServerAdmin webmaster@lamasti.net DocumentRoot /var/www/html ServerName lamasti.net ServerAlias www.lamasti.net ErrorLog logs/lamasti-error_log CustomLog logs/lamasti-access_log common Redirect permanent / https://lamasti.net/ </VirtualHost>
<VirtualHost *:443> AddDefaultCharset UTF-8 ServerAdmin webmaster@lamasti.net DocumentRoot /var/www/html ServerName lamasti.net ServerAlias www.lamasti.net ErrorLog logs/lamasti-error_log CustomLog logs/lamasti-access_log common Alias /mailman3/static /opt/mailman3/web/static Protocols h2 http/1.1 include conf.d/certref.inc
<Directory /opt/mailman3/web/static/hyperkitty/img/> Allow from all Require all granted Options FollowSymLinks </Directory>
<Directory /opt/mailman3/web/static/> Options FollowSymLinks Allow from all Require all granted </Directory> <IfModule mod_headers.c> RequestHeader unset X-Forwarded-Proto <If "%{HTTPS} =~ /on/"> RequestHeader set X-Forwarded-Proto "https" </If> </IfModule>
<IfModule mod_proxy.c> ProxyPreserveHost On ProxyPass "/mailman3" "http://127.0.0.1:8000/mailman3" ProxyPass "/mailman3/archives" "http://127.0.0.1:8000/archives" ProxyPass "/mailman3/accounts" "http://127.0.0.1:8000/accounts" ProxyPass "/mailman3/admin" "http://127.0.0.1:8000/admin" ProxyPass "/mailman3/user-profile" "http://127.0.0.1:8000/user-profile" </IfModule>
</VirtualHost>
The domain that doesn't work:
<VirtualHost *:80> ServerAdmin webmaster@list.punktskriftutvalget.no DocumentRoot /var/www/list.punktskriftutvalget/ ServerName list.punktskriftutvalget.no ErrorLog logs/list.punktskriftutvalget-error_log CustomLog logs/list.punktskriftutvalget-access_log common Redirect permanent / https://list.punktskriftutvalget.no </VirtualHost>
<VirtualHost *:443> ServerAdmin webmaster@list.punktskriftutvalget.no DocumentRoot /var/www/list.punktskriftutvalget/html ServerName list.punktskriftutvalget.no ErrorLog logs/list.punktskriftutvalget-error_log CustomLog logs/list.punktskriftutvalget-access_log combined include conf.d/certref.inc
Alias /mailman3/static /opt/mailman3/web/static
<Directory /opt/mailman3/web/static/hyperkitty/img/> Allow from all Require all granted Options FollowSymLinks </Directory>
<Directory /opt/mailman3/web/static/> Options FollowSymLinks Allow from all Require all granted </Directory>
<IfModule mod_headers.c> RequestHeader unset X-Forwarded-Proto <If "%{HTTPS} =~ /on/"> RequestHeader set X-Forwarded-Proto "https" </If> </IfModule>
<IfModule mod_proxy.c> ProxyPreserveHost On ProxyPass "/mailman3" "http://127.0.0.1:8000/mailman3" ProxyPass "/mailman3/archives" "http://127.0.0.1:8000/archives" ProxyPass "/mailman3/accounts" "http://127.0.0.1:8000/accounts" ProxyPass "/mailman3/admin" "http://127.0.0.1:8000/admin" ProxyPass "/mailman3/user-profile" "http://127.0.0.1:8000/user-profile" </IfModule>
</VirtualHost>
Thanks Lars
On Mon, Feb 13, 2023 at 05:27:55PM -0800, Mark Sapiro wrote:
On 2/13/23 02:05, Lars Bjørndal wrote:
I've now followed the documentation for configuring Apache here: https://docs.mailman3.org/en/latest/install/virtualenv.html#apache-configura.... I want both domains to start mailman3 when contacting example1.com/mailman3 and example2.com/mailman3. I have the sam configuration in both virtualhost section in Apache. For example1.com/mailman3, it works perfectly. For example2.com/mailman3 however, the browser (elinks), reports Host not found: example2.commailman3 e.g. without a slash after the domain name. What could cause this to happen?
Something wrong in the web server configuration. I can't begin to guess what without seeing it.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/ Archived at: https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/...
This message sent to lars@lamasti.net