Pagina 1 van 1

SSL geinstalleerd: geen toegang tot admin

Geplaatst: 28 jan 2017, 08:19
door tomatito
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?

Re: SSL geinstalleerd: geen toegang tot admin

Geplaatst: 28 jan 2017, 08:28
door tomatito
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.

Re: SSL geinstalleerd: geen toegang tot admin

Geplaatst: 28 jan 2017, 10:05
door El torro
Is dat certificaat wel geldig voor je subdomein?
Zonder url is het verder moeilijk raad geven

Re: SSL geinstalleerd: geen toegang tot admin

Geplaatst: 28 jan 2017, 19:16
door tomatito
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.

Re: SSL geinstalleerd: geen toegang tot admin

Geplaatst: 29 jan 2017, 09:10
door tomatito
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!)

Re: SSL geinstalleerd: geen toegang tot admin

Geplaatst: 29 jan 2017, 09:57
door El torro
Werkt het nu wel, want je cookies staan nog verkeerd?
De "." ervoor moet weg.

Re: SSL geinstalleerd: geen toegang tot admin

Geplaatst: 29 jan 2017, 11:31
door tomatito
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)

Re: SSL geinstalleerd: geen toegang tot admin

Geplaatst: 29 jan 2017, 11:35
door El torro
ik ga mij registeren

Re: SSL geinstalleerd: geen toegang tot admin

Geplaatst: 29 jan 2017, 22:12
door tomatito
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.

Re: SSL geinstalleerd: geen toegang tot admin

Geplaatst: 29 jan 2017, 22:17
door El torro
Als je de redirect verwijderd zien we ook niet of die goed geplaatst was.

Re: SSL geinstalleerd: geen toegang tot admin

Geplaatst: 29 jan 2017, 22:48
door tomatito
Maar het heeft volgens mij niks met redirect te maken. Toch? Zonder redirect hoor je gewoon over beide te kunnen inloggen: http en https.

Re: SSL geinstalleerd: geen toegang tot admin

Geplaatst: 29 jan 2017, 22:50
door tomatito
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 ;)

Re: SSL geinstalleerd: geen toegang tot admin

Geplaatst: 30 jan 2017, 01:29
door Froddelaar
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]

Re: SSL geinstalleerd: geen toegang tot admin

Geplaatst: 31 jan 2017, 00:23
door tomatito
Het is opgelost.

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

Iedereen bedankt voor de hulp :)