SSL not working on my newly setup forum/won't auto redirect

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
tampail
Registered User
Posts: 8
Joined: Wed Dec 06, 2017 7:44 pm

SSL not working on my newly setup forum/won't auto redirect

Post by tampail » Wed Dec 06, 2017 7:48 pm

Hello, I have bought web hosting from OVH which has just been activated and installed phpBB 3.2 on it. I bought DV single SSL (DV single SSL deployed on your hosting).

I mark the cookie settings as secured for SSL but the URL is still showing as insecure.

Please can someone tell me what I'm doing wrong here.
Last edited by tampail on Sat Dec 09, 2017 4:01 pm, edited 1 time in total.

User avatar
Elias
Registered User
Posts: 4610
Joined: Sat Feb 25, 2006 4:31 pm
Location: In the Water!
Name: Elias
Contact:

Re: SSL not working on my newly setup forum

Post by Elias » Wed Dec 06, 2017 8:23 pm

Did you set ‘Force server URL settings:’ to Yes?

ACP > server configuration > server settings
‘Force server URL settings:‘

Thanks
"Mystery creates wonder, and wonder is the basis of man's desire to understand." - Neil Armstrong
|Installing Extensions|Writing Extensions|Extension Validation Policy|

User avatar
Mick
Support Team Member
Support Team Member
Posts: 18126
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: SSL not working on my newly setup forum

Post by Mick » Wed Dec 06, 2017 8:25 pm

Please supply a link to your board.
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.
Forza Garibaldi

tampail
Registered User
Posts: 8
Joined: Wed Dec 06, 2017 7:44 pm

Re: SSL not working on my newly setup forum

Post by tampail » Wed Dec 06, 2017 8:51 pm

I changed it to 'yes' for Force server URL settings but it is still the same.

http://andreasmarket.net/ is the link

janus_zonstraal
Registered User
Posts: 1813
Joined: Sat Aug 30, 2014 1:30 pm

Re: SSL not working on my newly setup forum

Post by janus_zonstraal » Wed Dec 06, 2017 9:02 pm

Sorry! My English is bat ;) !!!

User avatar
thecoalman
Former Team Member
Posts: 2333
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: SSL not working on my newly setup forum

Post by thecoalman » Thu Dec 07, 2017 1:35 am

The following settings should work on most servers, under server settings in phpBB's ACP:

Force server URL settings: No
Server protocol: https://
Server port: 443

Under cookie settings:

Cookie secure: enabled

User avatar
Mick
Support Team Member
Support Team Member
Posts: 18126
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: SSL not working on my newly setup forum

Post by Mick » Thu Dec 07, 2017 8:55 am

Your Cookie domain is showing andreasmarket.net and it should be .andreasmarket.net, note the leading dot. See Knowledge Base - Fixing incorrect cookie settings.
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.
Forza Garibaldi

tampail
Registered User
Posts: 8
Joined: Wed Dec 06, 2017 7:44 pm

Re: SSL not working on my newly setup forum

Post by tampail » Thu Dec 07, 2017 10:15 pm

Thanks guys, although the https site is not opening by default. I realized the default port was set at 80 before so I changed it to 443. "Force server URL settings" yes and no don't seem to make a difference to the problem.

I have corrected the cookies, thanks for that.

sakm
Registered User
Posts: 461
Joined: Sun Jan 21, 2007 8:14 pm
Location: Hull, uk
Name: Stu
Contact:

Re: SSL not working on my newly setup forum

Post by sakm » Thu Dec 07, 2017 10:23 pm

you need to redirect all http traffic to https

Jodi-86
Registered User
Posts: 26
Joined: Thu Nov 30, 2017 10:04 pm

Re: SSL not working on my newly setup forum

Post by Jodi-86 » Fri Dec 08, 2017 4:12 am

I had the same problem yesterday and as Sakm says it needs to be redirected,

I was able to do it following the info that 3Di had posted:
3Di wrote:
Fri Aug 25, 2017 5:15 am
Forget any suggested change above posted.
In your .htaccess file (YOUR_FORUM_ROOT/.htaccess) after the first 2 lines

Code: Select all

<IfModule mod_rewrite.c>
RewriteEngine on
ADD, AFTER (on a new line)

Code: Select all

RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
The final result would be

Code: Select all

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
SAVE the file.

In ACP/cookie settings - set cookie secure to ENABLED.

(that's optional, not really needed, try first without)
In ACP/server settings - set Enable URL Rewriting to YES

Have fun.

User avatar
linux4me
Registered User
Posts: 57
Joined: Fri Oct 03, 2008 6:39 pm

Re: SSL not working on my newly setup forum

Post by linux4me » Fri Dec 08, 2017 5:40 pm

You also need to make sure you change the cookie name when you enable secure cookies to begin using HTTPS.

tampail
Registered User
Posts: 8
Joined: Wed Dec 06, 2017 7:44 pm

Re: SSL not working on my newly setup forum

Post by tampail » Fri Dec 08, 2017 10:15 pm

Jodi-86 wrote:
Fri Dec 08, 2017 4:12 am
I had the same problem yesterday and as Sakm says it needs to be redirected,

I was able to do it following the info that 3Di had posted:
3Di wrote:
Fri Aug 25, 2017 5:15 am
Forget any suggested change above posted.
In your .htaccess file (YOUR_FORUM_ROOT/.htaccess) after the first 2 lines

Code: Select all

<IfModule mod_rewrite.c>
RewriteEngine on
ADD, AFTER (on a new line)

Code: Select all

RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
The final result would be

Code: Select all

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
SAVE the file.

In ACP/cookie settings - set cookie secure to ENABLED.

(that's optional, not really needed, try first without)
In ACP/server settings - set Enable URL Rewriting to YES

Have fun.
I have tried this. I also tried redirecting by editing .htaccess

For some reason it is still not redirecting.

And yes I changed the cookie name, thanks.

User avatar
3Di
Registered User
Posts: 11876
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano - Frankfurt
Name: Marco
Contact:

Re: SSL not working on my newly setup forum

Post by 3Di » Fri Dec 08, 2017 11:06 pm

You need a SSL certificate installed, first of all.
Which seems you have, and your SSL is working by my side.
.
Image
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades

tampail
Registered User
Posts: 8
Joined: Wed Dec 06, 2017 7:44 pm

Re: SSL not working on my newly setup forum

Post by tampail » Sat Dec 09, 2017 4:01 pm

SSL is working, the problem now is it won't redirect.

User avatar
3Di
Registered User
Posts: 11876
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milano - Frankfurt
Name: Marco
Contact:

Re: SSL not working on my newly setup forum/won't auto redirect

Post by 3Di » Sat Dec 09, 2017 4:16 pm

Post here in between the CODE bbcode tags your "forum_root/.htaccess"" file pls.
To be clear, the one which lies where also the "config.php" is.

To add, a screenshot of your ACP settings.
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades

Post Reply

Return to “[3.2.x] Support Forum”

Who is online

Users browsing this forum: david63, Dunnocks, marvin-miller, stevemaury and 138 guests