SSL geinstalleerd: geen toegang tot admin

Hulp nodig bij je installatie of kom je ergens niet uit?
Probeer phpBB3.2! Problemen lossen we samen met je op.
Plaats reactie
tomatito
Berichten: 96
Lid geworden op: 08 dec 2016, 09:43

SSL geinstalleerd: geen toegang tot admin

Bericht door tomatito » 28 jan 2017, 08:19

Ik heb een (gratis) SSL certificaat voor mijn forum geactiveerd en daarna PhpBB opnieuw geïnstalleerd. Cookie settings zijn in orde en ik heb aangeven tijdens de installatie dat de url https is.

Ik heb nog geen redirect aangemaakt in .htaccess hierdoor zijn beide versies (http en https) toegangelijk.

Ik kan nu alleen niet meer inloggen op admin :shock:

Ik krijg deze melding (Firefox):
Secure Connection Failed

The connection to forum.mijnwebsite.nl:80 was interrupted while the page was loading.

The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
Please contact the website owners to inform them of this problem.
Iemand een idee wat hier aan de hand is?

Zie ik iets over het hoofd? Is dit een probleem met PhpBB of het certificaat?

tomatito
Berichten: 96
Lid geworden op: 08 dec 2016, 09:43

Re: SSL geinstalleerd: geen toegang tot admin

Bericht door tomatito » 28 jan 2017, 08:28

Toevoeging

Ga ik na de foutmelding terug naar de vorige pagina. Blijk ik ineens wel aangemeld te zijn :o ! Via het linkje beheer (links boven) ´floep´ ik in 1 keer mijn admin in. Ik ben gewend om naar admin te gaan 2 keer te moeten inloggen.

Gebruikersavatar
El torro
Berichten: 4271
Lid geworden op: 02 sep 2014, 21:28
Locatie: In het zonnige zuiden
Contacteer:

Re: SSL geinstalleerd: geen toegang tot admin

Bericht door El torro » 28 jan 2017, 10:05

Is dat certificaat wel geldig voor je subdomein?
Zonder url is het verder moeilijk raad geven

tomatito
Berichten: 96
Lid geworden op: 08 dec 2016, 09:43

Re: SSL geinstalleerd: geen toegang tot admin

Bericht door tomatito » 28 jan 2017, 19:16

Url: Url verwijderd

Het certificaat is geactiviteerd door mijn hoster. Ik ga daarom er vanuit dat dit wel goed zit. Zal wel a.s. maandag even contact met ze opnemen.
Laatst gewijzigd door tomatito op 31 jan 2017, 05:34, 1 keer totaal gewijzigd.

tomatito
Berichten: 96
Lid geworden op: 08 dec 2016, 09:43

Re: SSL geinstalleerd: geen toegang tot admin

Bericht door tomatito » 29 jan 2017, 09:10

Inmiddels dit toegevoegd aan .htaccess

Code: Selecteer alles

RewriteEngine on

RewriteCond %{HTTP:X-Forwarded-Proto} !http
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.*)$ [NC]
RewriteRule (.*) https://%1%{REQUEST_URI} [L,R=301]
Probleem met inloggen blijft bestaan

Maar ik kwam dit tegen in de .htaccess
# Uncomment the statement below if you want to make use of
# HTTP authentication and it does not already work.
# This could be required if you are for example using PHP via Apache CGI.
Wat betekend dat?!?

(Ik heb mijn forum op een subdomein geinstalleerd met https!)

Gebruikersavatar
El torro
Berichten: 4271
Lid geworden op: 02 sep 2014, 21:28
Locatie: In het zonnige zuiden
Contacteer:

Re: SSL geinstalleerd: geen toegang tot admin

Bericht door El torro » 29 jan 2017, 09:57

Werkt het nu wel, want je cookies staan nog verkeerd?
De "." ervoor moet weg.

tomatito
Berichten: 96
Lid geworden op: 08 dec 2016, 09:43

Re: SSL geinstalleerd: geen toegang tot admin

Bericht door tomatito » 29 jan 2017, 11:31

Cookies hebben nooit fout gestaan.

Zou je eens willen proberen om je te registeren? Kijken of dat zonder problemen lukt? Ik heb er een hard hoofd in.

(Er is trouwens ook iets met mixed content zag ik in de inspector en dit zorgt ervoor dat het groene slotje niet zichtbaar is. Bij het standaard theme (prosilver) is het groene slotje wel zichtbaar)

Gebruikersavatar
El torro
Berichten: 4271
Lid geworden op: 02 sep 2014, 21:28
Locatie: In het zonnige zuiden
Contacteer:

Re: SSL geinstalleerd: geen toegang tot admin

Bericht door El torro » 29 jan 2017, 11:35

ik ga mij registeren

tomatito
Berichten: 96
Lid geworden op: 08 dec 2016, 09:43

Re: SSL geinstalleerd: geen toegang tot admin

Bericht door tomatito » 29 jan 2017, 22:12

Dit is mijn .htaccess (gewoon standaard dus):
<IfModule mod_rewrite.c>
RewriteEngine on

#
# Uncomment the statement below if URL rewriting doesn't
# work properly. If you installed phpBB in a subdirectory
# of your site, properly set the argument for the statement.
# e.g.: if your domain is test.com and you installed phpBB
# in http://www.test.com/phpBB/index.php you have to set
# the statement RewriteBase /phpBB/
#
#RewriteBase /

#
# Uncomment the statement below if you want to make use of
# HTTP authentication and it does not already work.
# This could be required if you are for example using PHP via Apache CGI.
#
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]

#
# The following 3 lines will rewrite URLs passed through the front controller
# to not require app.php in the actual URL. In other words, a controller is
# by default accessed at /app.php/my/controller, but can also be accessed at
# /my/controller
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ app.php [QSA,L]

#
# If symbolic links are not already being followed,
# uncomment the line below.
# http://anothersysadmin.wordpress.com/20 ... pache-228/
#
#Options +FollowSymLinks
</IfModule>

# With Apache 2.4 the "Order, Deny" syntax has been deprecated and moved from
# module mod_authz_host to a new module called mod_access_compat (which may be
# disabled) and a new "Require" syntax has been introduced to mod_authz_host.
# We could just conditionally provide both versions, but unfortunately Apache
# does not explicitly tell us its version if the module mod_version is not
# available. In this case, we check for the availability of module
# mod_authz_core (which should be on 2.4 or higher only) as a best guess.
<IfModule mod_version.c>
<IfVersion < 2.4>
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
</IfVersion>
<IfVersion >= 2.4>
<Files "config.php">
Require all denied
</Files>
<Files "common.php">
Require all denied
</Files>
</IfVersion>
</IfModule>
<IfModule !mod_version.c>
<IfModule !mod_authz_core.c>
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
</IfModule>
<IfModule mod_authz_core.c>
<Files "config.php">
Require all denied
</Files>
<Files "common.php">
Require all denied
</Files>
</IfModule>
</IfModule>
Ik heb de redirect eruit gehaald omdat ik anders niet kan inloggen op admin. Voor zover ik het kan overzien (logisch redeneren) heeft het te maken met SSL (op http immers geen inlog problemen).

Mijn hoster gebruikt trouwens Varnish met NGINX.

Gebruikersavatar
El torro
Berichten: 4271
Lid geworden op: 02 sep 2014, 21:28
Locatie: In het zonnige zuiden
Contacteer:

Re: SSL geinstalleerd: geen toegang tot admin

Bericht door El torro » 29 jan 2017, 22:17

Als je de redirect verwijderd zien we ook niet of die goed geplaatst was.

tomatito
Berichten: 96
Lid geworden op: 08 dec 2016, 09:43

Re: SSL geinstalleerd: geen toegang tot admin

Bericht door tomatito » 29 jan 2017, 22:48

Maar het heeft volgens mij niks met redirect te maken. Toch? Zonder redirect hoor je gewoon over beide te kunnen inloggen: http en https.

tomatito
Berichten: 96
Lid geworden op: 08 dec 2016, 09:43

Re: SSL geinstalleerd: geen toegang tot admin

Bericht door tomatito » 29 jan 2017, 22:50

Ik had dit in .htaccess geplaatst:
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !http
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.*)$ [NC]
RewriteRule (.*) https://%1%{REQUEST_URI} [L,R=301]
Resultaat: http verwees door naar https.

Waarna ik dus niet meer kon inloggen ;)

Gebruikersavatar
Froddelaar
Berichten: 272
Lid geworden op: 29 mar 2016, 15:09
Locatie: Aalst, Belgie
Contacteer:

Re: SSL geinstalleerd: geen toegang tot admin

Bericht door Froddelaar » 30 jan 2017, 01:29

Ik gebruik dit om door te verwijzen naar https

Code: Selecteer alles

RewriteCond %{HTTPS} off
# First rewrite to HTTPS:
# Don't put www. here. If it is already there it will be included, if not
# the subsequent rule will catch it.
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Now, rewrite any request to the wrong domain to use www.
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Wij promoten UW muziek in ons forum & delen alles via Sociale media!
Muziek wordt ook toegevoegd in de playlist van
textradio.be!
Mail uw single + hoesje + info naar: info@muziekpromo.net of Solidjeuh@textradio.be
Onze Website: https://www.muziekpromo.net

tomatito
Berichten: 96
Lid geworden op: 08 dec 2016, 09:43

Re: SSL geinstalleerd: geen toegang tot admin

Bericht door tomatito » 31 jan 2017, 00:23

Het is opgelost.

Topic: https://www.phpbb.com/community/viewtop ... 9e6#unread

Iedereen bedankt voor de hulp :)

Plaats reactie