Can't login on PunBB 1.4.2, SSL error
September 30, 2015 02:16PM
Hello

(Cross posted on the PunBB forum)
(Feel free to move this topic to any more appropried forum)

So since I setup Nginx instead of Apache a a web server to run a PunBB 1.4.2, we can't login anymore :

Links and config: http://pastebin.com/fd2D5MZ0

When trying to login at http://www.annopedia.net/forums/anno1404/login.php
we are redirected to the page that ask use to confirm or cancel the action because a security token could not be confirmed.

Upon clicking on the "Confirm" or "Cancel" we are redirected to https://www.annopedia.net:80/forums/anno1404/login.php
Note the use of https and port 80.
As expected, chrome displays a "SSL connection error ERR_SSL_PROTOCOL_ERROR".

So what's up with that ?
I obviously have something to change in the Nginx config, but so far no luck finding something usefull on the Internet.

I don't have any SSL certificate installed (and don't want any).
Here is the vHost config :
http://pastebin.com/fd2D5MZ0
Re: Can't login on PunBB 1.4.2, SSL error
September 30, 2015 05:12PM
FlorentP Wrote:
-------------------------------------------------------
> 1.4.2, we can't login anymore :
>
> Upon clicking on the "Confirm" or "Cancel" we are redirected to
> https://www.annopedia.net:80/forums/anno1404/login.php
> Note the use of https and port 80.
>
> I don't have any SSL certificate installed (and don't want any).

You are redirected to ssl (which you obviously have setup) and you don't have a cert installed/placed for nginx to use? it's like trying to drive a car without petrol in it.

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: Can't login on PunBB 1.4.2, SSL error
October 01, 2015 02:08PM
itpp2012 Wrote:
-------------------------------------------------------
> You are redirected to ssl (which you obviously have setup) and you

Hey! thanks for you reply

If SSL is indeed setup, I did nothing for this and only have the default Nginx 1.2.1 global config : http://pastebin.com/zpQuPQek
So, how can I disable this ?

For the "ssl" directive in vHost, the doc says that the default is off so that's why adding it to the server block did change nothing.

Right now, I "fixed" the issue by proxying the request to Apache for this host, but I am interested in the cause of the behavior with Nginx and how to make it disappear.
Re: Can't login on PunBB 1.4.2, SSL error
October 01, 2015 04:34PM
You can't use the 'ssl' setting when not using its parameters and its files, so remove ssl.

---
nginx for Windows http://nginx-win.ecsds.eu/
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 158
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready