phpwcms und https/ssl
Posted: Tue 8. Nov 2016, 13:56
Muss man bei der Umstellung auf SSL seitens des Providers auch in den Konfig-Dateien von wcms etwas eintragen? Ich habe ein einfaches Zertifikat von Let's encrypt.
The phpwcms support forum will help to find answers to your questions. The small but strong community is here since more than 10 years.
https://forum.phpwcms.org/
Code: Select all
$phpwcms['site_ssl_mode'] = 1; // turns the SSL Support of WCMS on (1) or off (0), default value 0
$phpwcms['site_ssl_url'] = 'https://'.$_SERVER['SERVER_NAME'].'/'; // URL assigned to the SSL Certificate. Recommend 'https://'.$_SERVER['SERVER_NAME'].'/'
$phpwcms['site_ssl_port'] = 443; // The Port on which you SSL Service serve the secure Sites, default SSL port is 443Code: Select all
# Force everything to www. and keep SSL status too
[...]
RewriteCond %{HTTPS}s ^on(s)|Code: Select all
phpwcms['site_ssl_mode'] = 0;Code: Select all
$phpwcms['site'] = 'https://'.$_SERVER['SERVER_NAME'].'/';
warum? wg. redirect? auch domain redirect dort besser?Oliver Georgi wrote:oder prüfen, die meisten Provider bieten hier entsprechende Optionen. Dort ist es besser aufgehoben.