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 »

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: 5152
Joined: Sat Feb 25, 2006 4:31 pm
Name: Elias

Re: SSL not working on my newly setup forum

Post by Elias »

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: 26455
Joined: Fri Aug 29, 2008 9:49 am

Re: SSL not working on my newly setup forum

Post by Mick »

Please supply a link to your board.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
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 »

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

http://andreasmarket.net/ is the link
User avatar
janus_zonstraal
Registered User
Posts: 6414
Joined: Sat Aug 30, 2014 1:30 pm

Re: SSL not working on my newly setup forum

Post by janus_zonstraal »

Sorry! My English is bat ;) !!!
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 5850
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.
Contact:

Re: SSL not working on my newly setup forum

Post by thecoalman »

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
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26455
Joined: Fri Aug 29, 2008 9:49 am

Re: SSL not working on my newly setup forum

Post by Mick »

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©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
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 »

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: 713
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 »

you need to redirect all http traffic to https
User avatar
Jodi-86
Registered User
Posts: 100
Joined: Thu Nov 30, 2017 10:04 pm

Re: SSL not working on my newly setup forum

Post by Jodi-86 »

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: 60
Joined: Fri Oct 03, 2008 6:39 pm

Re: SSL not working on my newly setup forum

Post by linux4me »

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 »

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
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

Re: SSL not working on my newly setup forum

Post by 3Di »

You need a SSL certificate installed, first of all.
Which seems you have, and your SSL is working by my side.
.
Image
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º 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 »

SSL is working, the problem now is it won't redirect.
User avatar
3Di
I've Been Banned!
Posts: 17538
Joined: Mon Apr 04, 2005 11:09 pm
Location: I'm with Ukraine 🇺🇦
Name: Marco
Contact:

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

Post by 3Di »

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.
🆓 Free support for our extensions also provided here: phpBB Studio
🚀 Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Buy me a coffee -> Image
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
Post Reply

Return to “[3.2.x] Support Forum”