phpBB Italia chiude!
phpBB Italia ringrazia tutti gli utenti che hanno dato fiducia al nostro progetto per ben 9 anni, e che, grazie al grande lavoro fatto da tutto lo Staff (rigorosamente a titolo gratuito), hanno portato il portale a diventare il principale punto di riferimento italiano alla piattaforma phpBB.

Purtroppo, causa motivi personali, non ho più modo di gestirlo e portarlo avanti. Il forum viene ora posto in uno stato di sola lettura, nonché un archivio storico per permettere a chiunque di fruire di tutte le discussioni trattate.

Il nuovo portale di assistenza per l'Italia di phpBB diventa phpBB-Store.it, cui ringrazio per aver deciso di portare avanti questo grande progetto.

Grazie ancora,
Carlo - Amministratore di phpBB Italia

ssl con phpbb

Supporto per phpBB 3.1.x.
Rispondi
Avatar utente
alex75
phpBB Expert
phpBB Expert
Messaggi: 943
Iscritto il: 31/03/2012, 23:46
Sesso: Maschio
Versione: 3.2.0
Server: UNIX/Linux
PHP: 5.6.37
Database: MySQL 5.6.39
Località: palermo
Contatta:

ssl con phpbb

Messaggio da alex75 » 18/01/2017, 21:10

Ciao ragazzi.
Ho installato il certificato ssl su un mio forum che gira su aruba (aruba lo fornisce gratuitamente)

Codice: Seleziona tutto

vitara.it
Ma suppongo che ci siano degli accorgimenti da fare, per farlo funzionare correttamente.
Ho provato ad abilitare i cookies sicuri da pca e/o a forzare le impostazioni url del server da pca/configurazione server mettendo https, ma il forum non apre automaticamente in https e se provo manualmente ad aprirlo da url https.... non carica i css, anche svuotando la cache.
Qual'è la procedura corretta?
Va modificato anche il file htaccess?

Avatar utente
Carlo
Amministratore
Amministratore
Messaggi: 9957
Iscritto il: 19/04/2009, 10:24
Sesso: Maschio
Versione: 3.2.0
Server: UNIX/Linux
PHP: 7.1.0
Database: MySQL(i) 10.0.27-MariaDB-cll-lve
Località: Puglia
Contatta:

Re: ssl con phpbb

Messaggio da Carlo » 18/01/2017, 23:53

Se vuoi forzare il tuo sito in SSL, inserisci questo nel file .htaccess:

Codice: Seleziona tutto

<IfModule mod_ssl.c>
<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteCond %{HTTPS} off
   RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</IfModule>
</IfModule>
Verifica che il protocollo in PCA -> Generale -> Server sia https:// invece di http://.
Abilita i cookie sicuri in PCA -> Generale -> Cookie.
MODs | Stili | Traduzioni MOD
Ogni MP contenente una richiesta di supporto verrà ignorato.

Avatar utente
alex75
phpBB Expert
phpBB Expert
Messaggi: 943
Iscritto il: 31/03/2012, 23:46
Sesso: Maschio
Versione: 3.2.0
Server: UNIX/Linux
PHP: 5.6.37
Database: MySQL 5.6.39
Località: palermo
Contatta:

Re: ssl con phpbb

Messaggio da alex75 » 19/01/2017, 8:28

Adesso sembra che stia funzionando sia con le modifiche al file htaccess e sia senza. ho provato ad aggiungerle all'inizio o alla fine del file, ma non cambia nulla.
Avevo per errore digitato (non so quanto tempo fà) la porta 80 in pca/generale/configurazione server/server.
Unico difetto che riscontro adesso è che se digita l'url con www allora mi dà https, se invece dito senza il www si apre in http; ma questo suppongo che sia una questione di certificato che andava rilasciato per entrambi i casi. Giusto?
Per il file htaccess che faccio? lo lasco originale come ora?

Avatar utente
Carlo
Amministratore
Amministratore
Messaggi: 9957
Iscritto il: 19/04/2009, 10:24
Sesso: Maschio
Versione: 3.2.0
Server: UNIX/Linux
PHP: 7.1.0
Database: MySQL(i) 10.0.27-MariaDB-cll-lve
Località: Puglia
Contatta:

Re: ssl con phpbb

Messaggio da Carlo » 19/01/2017, 9:36

Quella modifica per l'htaccess ti serve per forzare la navigazione in HTTPS.
Senza quella modifica, phpBB abilita l'HTTPS solo in alcune pagine, come per esempio la pagina di login o di registrazione.

Da quel che vedo non ti forza l'HTTPS neanche quando visiti il sito con il www.
Probabilmente ti sembra che venga forzato l'HTTPS per motivi di cache del browser.

Allega il tuo .htaccess.
MODs | Stili | Traduzioni MOD
Ogni MP contenente una richiesta di supporto verrà ignorato.

Avatar utente
alex75
phpBB Expert
phpBB Expert
Messaggi: 943
Iscritto il: 31/03/2012, 23:46
Sesso: Maschio
Versione: 3.2.0
Server: UNIX/Linux
PHP: 5.6.37
Database: MySQL 5.6.39
Località: palermo
Contatta:

Re: ssl con phpbb

Messaggio da alex75 » 19/01/2017, 10:35

ecco il mio htaccess:

Codice: Seleziona tutto

<IfModule mod_rewrite.c>
	# You may need to un-comment the following lines
	# Options +FollowSymlinks
	# To make sure that rewritten dir or file (/|.html) will not load dir.php in case it exist
	# Options -MultiViews
	# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
	RewriteEngine On

	# 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]

	# REWRITE BASE
	RewriteBase /

	# HERE IS A GOOD PLACE TO FORCE CANONICAL DOMAIN
	# Define fully qualified ssl aware protocol
	# RewriteCond %{SERVER_PORT}s ^(443(s)|[0-9]+s)$
	# RewriteRule ^.*$ - [env=HttpFullProto:http%2://]
	# RewriteCond %{HTTP_HOST} !^www\.vitara\.it$ [NC]
	# RewriteRule ^(.*)$ %{ENV:HttpFullProto}www.vitara.it/$1 [QSA,L,R=301]

	# DO NOT GO FURTHER IF THE REQUESTED FILE / DIR DOES EXISTS
	RewriteCond %{REQUEST_FILENAME} -f [OR]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteRule . - [L]
	# FORUM INDEX REWRITERULE WOULD STAND HERE IF USED. &quot;forum&quot; REQUIRES TO BE SET AS FORUM INDEX
	# RewriteRule ^forum\.html$ /index.php [QSA,L,NC]
	# FORUM ALL MODES
	RewriteRule ^(forum|[a-z0-9_-]*-f)([0-9]+)/?(page([0-9]+)\.html)?$ /viewforum.php?f=$2&start=$4 [QSA,L,NC]
	# TOPIC WITH VIRTUAL FOLDER ALL MODES
	RewriteRule ^(forum|[a-z0-9_-]*-f)([0-9]+)/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?f=$2&t=$4&start=$6 [QSA,L,NC]
	# TOPIC WITHOUT FORUM ID & DELIM ALL MODES
	RewriteRule ^([a-z0-9_-]*)/?(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?forum_uri=$1&t=$3&start=$5 [QSA,L,NC]
	# PROFILES THROUGH USERNAME
	RewriteRule ^member/([^/]+)/?$ /memberlist.php?mode=viewprofile&un=$1 [QSA,L,NC]
	# USER MESSAGES THROUGH USERNAME
	RewriteRule ^member/([^/]+)/(topics|posts)/?(page([0-9]+)\.html)?$ /search.php?author=$1&sr=$2&start=$4 [QSA,L,NC]
	# GROUPS ALL MODES
	RewriteRule ^(group|[a-z0-9_-]*-g)([0-9]+)(-([0-9]+))?\.html$ /memberlist.php?mode=group&g=$2&start=$4 [QSA,L,NC]
	# POSTS
	RewriteRule ^post([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L,NC]
	# ACTIVE TOPICS
	RewriteRule ^active-topics(-([0-9]+))?\.html$ /search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
	# UNANSWERED TOPICS
	RewriteRule ^unanswered(-([0-9]+))?\.html$ /search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
	# NEW POSTS
	RewriteRule ^newposts(-([0-9]+))?\.html$ /search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
	# UNREAD POSTS
	RewriteRule ^unreadposts(-([0-9]+))?\.html$ /search.php?search_id=unreadposts&start=$2 [QSA,L,NC]
	# THE TEAM
	RewriteRule ^the-team\.html$ /memberlist.php?mode=team [QSA,L,NC]
	# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES
	
	# FORUM WITHOUT ID & DELIM ALL MODES
	# THESE LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteRule ^([a-z0-9_-]+)/?(page([0-9]+)\.html)?$ /viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
	# FIX RELATIVE PATHS : FILES
	RewriteRule ^(style\.php|ucp\.php|mcp\.php|faq\.php|posting\.php|download/file\.php|report\.php|adm/index\.php|cron\.php)$ /$1 [QSA,L,NC,R=301]
	# FIX RELATIVE PATHS : IMAGES
	RewriteRule ^(styles/.*|images/.*|assets/.*|ext/.*)$ /$1 [QSA,L,NC,R=301]
	#
	# 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]

</IfModule>

# With Apache 2.4 the &quot;Order, Deny&quot; 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 &quot;Require&quot; 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 &quot;config.php&quot;>
			Order Allow,Deny
			Deny from All
		</Files>
		<Files &quot;common.php&quot;>
			Order Allow,Deny
			Deny from All
		</Files>
	</IfVersion>
	<IfVersion >= 2.4>
		<Files &quot;config.php&quot;>
			Require all denied
		</Files>
		<Files &quot;common.php&quot;>
			Require all denied
		</Files>
	</IfVersion>
</IfModule>
<IfModule !mod_version.c>
	<IfModule !mod_authz_core.c>
		<Files &quot;config.php&quot;>
			Order Allow,Deny
			Deny from All
		</Files>
		<Files &quot;common.php&quot;>
			Order Allow,Deny
			Deny from All
		</Files>
	</IfModule>
	<IfModule mod_authz_core.c>
		<Files &quot;config.php&quot;>
			Require all denied
		</Files>
		<Files &quot;common.php&quot;>
			Require all denied
		</Files>
	</IfModule>
</IfModule>
AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json
 
AddOutputFilter DEFLATE text/plain
AddOutputFilter DEFLATE text/xml
AddOutputFilter DEFLATE application/xhtml+xml
AddOutputFilter DEFLATE text/css
AddOutputFilter DEFLATE application/xml
AddOutputFilter DEFLATE image/svg+xml
AddOutputFilter DEFLATE application/rss+xml
AddOutputFilter DEFLATE application/atom_xml
AddOutputFilter DEFLATE application/x-javascript
AddOutputFilter DEFLATE application/x-httpd-php
AddOutputFilter DEFLATE application/x-httpd-fastphp
AddOutputFilter DEFLATE application/x-httpd-eruby
AddOutputFilter DEFLATE text/html
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.(?:exe|t?gz|zip|bz2|sit|rar)$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.pdf$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.avi$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.mov$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.mp3$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.mp4$ no-gzip dont-vary
SetEnvIfNoCase Request_URI \.rm$ no-gzip dont-vary
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch ^MSIE !no-gzip !gzip-only-text/html
SetEnvIfNoCase Request_URI \.iso$ no-gzip dont-vary
<IfModule mod_expires.c>
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/javascript "access plus 1 year"
</IfModule>

Avatar utente
alex75
phpBB Expert
phpBB Expert
Messaggi: 943
Iscritto il: 31/03/2012, 23:46
Sesso: Maschio
Versione: 3.2.0
Server: UNIX/Linux
PHP: 5.6.37
Database: MySQL 5.6.39
Località: palermo
Contatta:

Re: ssl con phpbb

Messaggio da alex75 » 19/01/2017, 18:24

Nel frattempo mi ha risposto aruba al ticket ed ho risolto.
ecco i parametri che mi hanno detto di impostare:
per reindirizzare le richieste verso https Le suggeriamo di:
accedere al pannello di controllo amministratore -> generale -> Configurazione Server -> Cookie Cookie sicuri:Abilitato

pannello di controllo amministratore -> generale -> Configurazione Server -> Server impostare protocollo https e porta 443 forza =SI
possibile reindirizzare tutto il traffico http verso HTTPS inserendo nella radice del dominio un file .htaccess (o aggiornare quello già esistente) contenente le seguenti righe:
# Redirect to HTTPS
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https

RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]



da inserire dopo le righe
RewriteEngine On
RewriteBase /

Rispondi

Torna a “[3.1.x] Forum di Supporto”

Chi c’è in linea

Visitano il forum: Nessuno e 21 ospiti