# Problem with mailman behind nginx with TLS certs

**URL:** <https://www.ruby-forum.com/t/problem-with-mailman-behind-nginx-with-tls-certs/244849>\
**Category:** NGINX\
**Created:** [June 24, 2016, 5:29pm UTC](https://www.ruby-forum.com/t/problem-with-mailman-behind-nginx-with-tls-certs/244849 "2016-06-24T17:29:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sadaf\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/858c86/32.png) [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Post date:** [June 24, 2016, 5:29pm UTC](https://www.ruby-forum.com/t/problem-with-mailman-behind-nginx-with-tls-certs/244849/1 "2016-06-24T17:29:31Z")

</div>

mailman version 2.1.22 works fine for my webpages I set up such as  
[http://cibolo.us/mailman/listinfo/open\_electroporator](http://cibolo.us/mailman/listinfo/open_electroporator) that URl is  
rewritten and permenanently directed to below:  
[https://cibolo.us/mailman/listinfo/open\_electroporator](https://cibolo.us/mailman/listinfo/open_electroporator)

The problem is with the moderation page. When submitting a change,  
a security warning pops up saying info will not be encrypted,  
I click continue,

The radio button for discard goes back to Defer, the state it was in  
before.

All other functions of the admin pages work normally except for this.

Do you think some special rewrite is needed for  
[https://cibolo.us/mailman/admindb/sandbox](https://cibolo.us/mailman/admindb/sandbox)  
the URl that has this problem? (All lists on this server have this  
problem).

Thanks,  
John Griessen

=================================================================

I checked and my configuration had:  
DEFAULT\_URL\_HOST = ‘[cibolo.us](http://cibolo.us)’  
DEFAULT\_URL\_PATTERN = ‘http://%s/mailman/’  
DEFAULT\_EMAIL\_HOST = ‘[cibolo.us](http://cibolo.us)’  
MTA=‘Postfix’

nginx was set to serve [www.cibolo.us](http://www.cibolo.us) and [cibolo.us](http://cibolo.us) by redirecting to  
[https://cibolo.us](https://cibolo.us)

the subdirectories are set to be rewritten as in

> **[Mailman | NGINX](https://www.nginx.com/resources/wiki/start/topics/recipes/mailman/)**
>
> A sample NGINX configuration for Mailman.

location /mailman  
location /images/mailman  
location /pipermail

After noting these settings, I reran

sudo /usr/sbin/withlist -l -r fix\_url sandbox

then cleared the browser cache,  
then browsed  
[https://cibolo.us/mailman/listinfo](https://cibolo.us/mailman/listinfo)

where I see an overall lists list

I use those links to navigate to

[https://cibolo.us/mailman/listinfo/sandbox](https://cibolo.us/mailman/listinfo/sandbox)  
[https://cibolo.us/mailman/admin/sandbox](https://cibolo.us/mailman/admin/sandbox)  
[https://cibolo.us/mailman/admindb/sandbox](https://cibolo.us/mailman/admindb/sandbox)

and when I change action to take to discard  
and click submit,

a security warning pops up saying info will not be encrypted,  
I click continue,

The radio button for discard goes back to Defer, the state it was in  
before.

All other functions of the admin pages work normally except for this.

# ======================================================= If I change nginx to not redirect, but serve http without TLS certs when asked, the user interface for moderation works normally.

---

<div class="post-metadata">

**Author:** ![John\_Griessen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8797f3/32.png) [@John\_Griessen](https://www.ruby-forum.com/u/John_Griessen)\
**Post date:** [June 24, 2016, 5:35pm UTC](https://www.ruby-forum.com/t/problem-with-mailman-behind-nginx-with-tls-certs/244849/2 "2016-06-24T17:35:22Z")

</div>

John Griessen:

> I checked and my configuration had:  
> DEFAULT\_URL\_PATTERN = ‘http://%s/mailman/’

shouldn’t that say “httpS:// …” ?

Andreas

---

<div class="post-metadata">

**Author:** ![John\_Griessen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8797f3/32.png) [@John\_Griessen](https://www.ruby-forum.com/u/John_Griessen)\
**Post date:** [June 24, 2016, 5:35pm UTC](https://www.ruby-forum.com/t/problem-with-mailman-behind-nginx-with-tls-certs/244849/3 "2016-06-24T17:35:57Z")

</div>

On 06/24/2016 10:29 AM, John Griessen wrote:

> The problem is with the moderation page. When submitting a change,  
> a security warning pops up saying info will not be encrypted

I found what this needed from Mark Sapiro:

put

DEFAULT\_URL\_PATTERN = ‘https://%s/mailman/’

in mm,\_cfg.py ad then rerun

sudo /usr/sbin/withlist -l -r fix\_url sandbox

---

<div class="post-metadata">

**Author:** ![John\_Griessen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/8797f3/32.png) [@John\_Griessen](https://www.ruby-forum.com/u/John_Griessen)\
**Post date:** [June 24, 2016, 5:36pm UTC](https://www.ruby-forum.com/t/problem-with-mailman-behind-nginx-with-tls-certs/244849/4 "2016-06-24T17:36:32Z")

</div>

On 06/24/2016 10:34 AM, A. Schulze wrote:

> shouldn’t that say “httpS:// …” ?

Yes,

thanks,

JG
