Hi, list!
I have lists on two domains, example1.com and example2.com. The mail interface works perfectly. However, connecting a browser to example1.com, I get the title List index - example1.com, and the web interface seems to work fine.
If I connect to example2.com, the title is example2.com, without the preceding List index. And the body says Page not found.
I can't find anything in the logs that tells me the reason.
SITE_ID is set to 0.
Any idea?
Thanks in advance, Lars
On 2/9/23 13:21, Lars Bjørndal wrote:
I have lists on two domains, example1.com and example2.com. The mail interface works perfectly. However, connecting a browser to example1.com, I get the title List index - example1.com, and the web interface seems to work fine.
If I connect to example2.com, the title is example2.com, without the preceding List index. And the body says Page not found.
What's in the browser's address bar for that page?
What's in Postorius domains view?
What's in the Django admin sites view.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
On Thu, Feb 09, 2023 at 02:05:09PM -0800, Mark Sapiro wrote:
On 2/9/23 13:21, Lars Bjørndal wrote:
I have lists on two domains, example1.com and example2.com. The mail interface works perfectly. However, connecting a browser to example1.com, I get the title List index - example1.com, and the web interface seems to work fine.
If I connect to example2.com, the title is example2.com, without the preceding List index. And the body says Page not found.
What's in the browser's address bar for that page?
It's https://example2.com/mailman3/lists/
For the domain that works, it is https://example1.com/mailman3/lists/
Please note that I've changed mailman to mailman3 for the complete installation.
What's in Postorius domains view?
I realized that I have to change SIT_ID to 1 to be able to connect to http://localhost:8000/. Then, when checking Domains, I have both domains with different SIT_ID value (1 and 2).
What's in the Django admin sites view.
Going to http://localhost:8000/admin and choosing Sites, I have both domains listed.
Thanks
Lars
On 2/10/23 01:43, Lars Bjørndal wrote:
On Thu, Feb 09, 2023 at 02:05:09PM -0800, Mark Sapiro wrote:
On 2/9/23 13:21, Lars Bjørndal wrote:
If I connect to example2.com, the title is example2.com, without the preceding List index. And the body says Page not found.
What's in the browser's address bar for that page?
And when you get the Page not found, is it a browser 404 error or a Postorius error page?
What's in Postorius domains view?
I realized that I have to change SIT_ID to 1 to be able to connect to http://localhost:8000/. Then, when checking Domains, I have both domains with different SIT_ID value (1 and 2).
Why are you going to http://localhost:8000/? You should be able to see the domain's view at https://example1.com/mailman3/domains/ or https://example1.com/mailman3/domains/ or by just clicking Domains in Postorius top nav bar.
Going to http://localhost:8000/admin and choosing Sites, I have both domains listed.
Again you should be able to go to https://example1.com/admin or https://example2.com/admin. If these don't work, you need to add directives in your web server to proxy them to http://localhost:8000/admin
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Hi, Marik!
I realized that I had two variables in settings.py where the domains is listed, and one of them had a preceding https.
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?
Thanks Lars
On Fri, Feb 10, 2023 at 11:59:02AM -0800, Mark Sapiro wrote:
On 2/10/23 01:43, Lars Bjørndal wrote:
On Thu, Feb 09, 2023 at 02:05:09PM -0800, Mark Sapiro wrote:
On 2/9/23 13:21, Lars Bjørndal wrote:
If I connect to example2.com, the title is example2.com, without the preceding List index. And the body says Page not found.
What's in the browser's address bar for that page?
And when you get the Page not found, is it a browser 404 error or a Postorius error page?
What's in Postorius domains view?
I realized that I have to change SIT_ID to 1 to be able to connect to http://localhost:8000/. Then, when checking Domains, I have both domains with different SIT_ID value (1 and 2).
Why are you going to http://localhost:8000/? You should be able to see the domain's view at https://example1.com/mailman3/domains/ or https://example1.com/mailman3/domains/ or by just clicking Domains in Postorius top nav bar.
Going to http://localhost:8000/admin and choosing Sites, I have both domains listed.
Again you should be able to go to https://example1.com/admin or https://example2.com/admin. If these don't work, you need to add directives in your web server to proxy them to http://localhost:8000/admin
-- 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
Are you by any chance doing redirection to https in your VHOSTS? For me I beg to see your VHOST configuration. Also is it absolutely necessary to hide your domain names?
On Mon, Feb 13, 2023, 13:05 Lars Bjørndal <lars@lamasti.net> wrote:
Hi, Marik!
I realized that I had two variables in settings.py where the domains is listed, and one of them had a preceding https.
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?
Thanks Lars
On 2/10/23 01:43, Lars Bjørndal wrote:
On Thu, Feb 09, 2023 at 02:05:09PM -0800, Mark Sapiro wrote:
On 2/9/23 13:21, Lars Bjørndal wrote:
If I connect to example2.com, the title is example2.com, without
preceding List index. And the body says Page not found.
What's in the browser's address bar for that page?
And when you get the Page not found, is it a browser 404 error or a Postorius error page?
What's in Postorius domains view?
I realized that I have to change SIT_ID to 1 to be able to connect to
http://localhost:8000/. Then, when checking Domains, I have both domains with different SIT_ID value (1 and 2).
Why are you going to http://localhost:8000/? You should be able to see
domain's view at https://example1.com/mailman3/domains/ or https://example1.com/mailman3/domains/ or by just clicking Domains in Postorius top nav bar.
Going to http://localhost:8000/admin and choosing Sites, I have both domains listed.
Again you should be able to go to https://example1.com/admin or https://example2.com/admin. If these don't work, you need to add
On Fri, Feb 10, 2023 at 11:59:02AM -0800, Mark Sapiro wrote: the the directives
in your web server to proxy them to http://localhost:8000/admin
-- 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
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 odhiambo@gmail.com
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
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
On 2/14/23 12:08, Lars Bjørndal wrote:
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>
Add a trailing slash
Redirect permanent / https://list.punktskriftutvalget.no/
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Ah, so stupid error and so simple solution - thank you!
Lars
On Tue, Feb 14, 2023 at 12:42:16PM -0800, Mark Sapiro wrote:
On 2/14/23 12:08, Lars Bjørndal wrote:
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>
Add a trailing slash
Redirect permanent / https://list.punktskriftutvalget.no/
-- 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
participants (3)
-
Lars Bjørndal
-
Mark Sapiro
-
Odhiambo Washington