Server-Admin-Log: Unterschied zwischen den Versionen
(10 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
Zeile 6: | Zeile 6: | ||
− | == Add HTTPS on login pages of the Wiki and Forum --[[User:Tony Ford|Tony Ford]] ([[User talk:Tony Ford|talk]]) 23:26, 23 February 2013 (CET) | + | == Add HTTPS on login pages of the Wiki and Forum == |
+ | |||
+ | --[[User:Tony Ford|Tony Ford]] ([[User talk:Tony Ford|talk]]) 23:26, 23 February 2013 (CET) | ||
File: '''/etc/apache2/ports.conf''' | File: '''/etc/apache2/ports.conf''' | ||
Zeile 65: | Zeile 67: | ||
− | === Redirect from HTTP to HTTPS === | + | === Redirect from HTTP to HTTPS (only for information) === |
+ | |||
+ | --[[User:Tony Ford|Tony Ford]] ([[User talk:Tony Ford|talk]]) 23:26, 23 February 2013 (CET) | ||
+ | |||
+ | |||
+ | following lines inside the VirtualHost *:80 -tags would redirect HTTP to HTTPS. | ||
− | + | '''This is only for information! It will not applied!''' | |
Zeile 81: | Zeile 88: | ||
=== Adjust the wiki LocalSettings.php === | === Adjust the wiki LocalSettings.php === | ||
+ | |||
+ | --[[User:Tony Ford|Tony Ford]] ([[User talk:Tony Ford|talk]]) 12:00, 28 February 2013 (CET) | ||
+ | |||
File: '''.../wiki/LocalSettings.php''' | File: '''.../wiki/LocalSettings.php''' | ||
− | + | replace line | |
<source lang="php"> | <source lang="php"> | ||
Zeile 90: | Zeile 100: | ||
</source> | </source> | ||
− | Wiki | + | with this lines |
+ | |||
+ | <source lang="php"> | ||
+ | $wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http'; | ||
+ | $wgServer = $wgProto."://wiki.opensourceecology.de"; | ||
+ | </source> | ||
+ | |||
+ | Wiki HTTP is now selectable. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | activate HTTPS Login with selectable redirection back to HTTP after login | ||
+ | |||
+ | add line | ||
+ | |||
+ | <source lang="php"> | ||
+ | $wgSecureLogin=true; | ||
+ | $wgCookieSecure=false; | ||
+ | </source> | ||
+ | |||
+ | == Shorten Wiki-URL (from .../wiki/Page to .../Page) == | ||
+ | |||
+ | === adjust Localsettings.php (wgArticlePath) === | ||
+ | |||
+ | --[[User:Tony Ford|Tony Ford]] ([[User talk:Tony Ford|talk]]) 12:04, 28 February 2013 (CET) | ||
+ | |||
+ | set wgArticlePath to | ||
+ | |||
+ | <source lang="php"> | ||
+ | $wgArticlePath = "$wgScriptPath/$1"; | ||
+ | </source> | ||
+ | |||
+ | |||
+ | === adjust .htaccess (Redirection) === | ||
+ | |||
+ | --[[User:Tony Ford|Tony Ford]] ([[User talk:Tony Ford|talk]]) 12:04, 28 February 2013 (CET) | ||
+ | |||
+ | old | ||
+ | |||
+ | |||
+ | RewriteEngine On | ||
+ | RewriteCond %{REQUEST_FILENAME} !-f | ||
+ | RewriteCond %{REQUEST_FILENAME} !-d | ||
+ | RewriteRule ^wiki/(.*)$ /index.php?title=$1 [PT,L,QSA] | ||
+ | RewriteRule ^wiki/*$ wiki/ [L,QSA] | ||
+ | RewriteRule ^/*$ /wiki/ [L,QSA] | ||
+ | |||
+ | |||
+ | new | ||
+ | |||
+ | RewriteEngine On | ||
+ | RewriteCond %{REQUEST_FILENAME} !-f | ||
+ | RewriteCond %{REQUEST_FILENAME} !-d | ||
+ | RewriteRule ^(.*)$ /index.php?title=$1 [PT,L,QSA] | ||
+ | |||
+ | == Forum BBCodes bugfix == | ||
+ | |||
+ | --[[User:Tony Ford|Tony Ford]] ([[User talk:Tony Ford|talk]]) 11:39, 30 January 2014 (CET) | ||
+ | |||
+ | filename: ./includes/acp/acp_bbcodes.php | ||
+ | |||
+ | find | ||
+ | |||
+ | <source lang="php"> | ||
+ | 'SIMPLETEXT' => array( | ||
+ | '!([a-zA-Z0-9-+.,_ ]+)!' => "$1" | ||
+ | </source> | ||
+ | |||
+ | replace with | ||
+ | |||
+ | <source lang="php"> | ||
+ | 'SIMPLETEXT' => array( | ||
+ | '!([a-zA-Z0-9-+.,_ :;/\(\)&$§%€@#]+)!' => "$1" | ||
+ | </source> | ||
+ | |||
+ | |||
+ | find | ||
+ | |||
+ | <source lang="php"> | ||
+ | 'SIMPLETEXT' => '([a-zA-Z0-9-+., ]+)', | ||
+ | </source> | ||
+ | |||
+ | replace with | ||
+ | |||
+ | <source lang="php"> | ||
+ | 'SIMPLETEXT' => '([a-zA-Z0-9-+., :;/\(\)&$§%€@#]+)', | ||
+ | </source> | ||
+ | |||
+ | |||
+ | [[Category: Logs]] |
Aktuelle Version vom 30. Januar 2014, 10:45 Uhr
Create a own SSL certificate
http://mathias-kettner.de/lw_ca_zertifikat_erstellen.html
I created a certificate but I've seen that there already exists a cerificate (already using on mail.opensourceecology.de)
Add HTTPS on login pages of the Wiki and Forum
--Tony Ford (talk) 23:26, 23 February 2013 (CET)
File: /etc/apache2/ports.conf
add line
NameVirtualHost *:443
to resolve the message at apache restart
[warn] _default_ VirtualHost overlap on port 443, the first has precedence
File: /ect/apache2/sites-enabled/...wiki
inserted https section
File: /ect/apache2/sites-enabled/...forum
inserted https section
File: /ect/apache2/sites-enabled/...blog
inserted https section
insert https section
duplicate the lines
<VirtualHost *:80>
...
</VirtualHost>
adjust the duplicate the portnumber from 80 to 443
insert the following lines to enable SSL (HTTPS)
# SSL Einschalten
SSLEngine on
# Das Zertifikat für den Server
SSLCertificateFile [URL_to_Servercert]
# Die Schlüsseldatei für den Server
SSLCertificateKeyFile [URL_to_Serverkey]
Redirect from HTTP to HTTPS (only for information)
--Tony Ford (talk) 23:26, 23 February 2013 (CET)
following lines inside the VirtualHost *:80 -tags would redirect HTTP to HTTPS.
This is only for information! It will not applied!
RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule .* https://wiki.opensourceecology.de/%{REQUEST_URI} [R,L]
Adjust the wiki LocalSettings.php
--Tony Ford (talk) 12:00, 28 February 2013 (CET)
File: .../wiki/LocalSettings.php
replace line
$wgServer = "https://wiki.opensourceecology.de";
with this lines
$wgProto = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 'https' : 'http';
$wgServer = $wgProto."://wiki.opensourceecology.de";
Wiki HTTP is now selectable.
activate HTTPS Login with selectable redirection back to HTTP after login
add line
$wgSecureLogin=true;
$wgCookieSecure=false;
Shorten Wiki-URL (from .../wiki/Page to .../Page)
adjust Localsettings.php (wgArticlePath)
--Tony Ford (talk) 12:04, 28 February 2013 (CET)
set wgArticlePath to
$wgArticlePath = "$wgScriptPath/$1";
adjust .htaccess (Redirection)
--Tony Ford (talk) 12:04, 28 February 2013 (CET)
old
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^wiki/(.*)$ /index.php?title=$1 [PT,L,QSA] RewriteRule ^wiki/*$ wiki/ [L,QSA] RewriteRule ^/*$ /wiki/ [L,QSA]
new
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php?title=$1 [PT,L,QSA]
Forum BBCodes bugfix
--Tony Ford (talk) 11:39, 30 January 2014 (CET)
filename: ./includes/acp/acp_bbcodes.php
find
'SIMPLETEXT' => array(
'!([a-zA-Z0-9-+.,_ ]+)!' => "$1"
replace with
'SIMPLETEXT' => array(
'!([a-zA-Z0-9-+.,_ :;/\(\)&$§%€@#]+)!' => "$1"
find
'SIMPLETEXT' => '([a-zA-Z0-9-+., ]+)',
replace with
'SIMPLETEXT' => '([a-zA-Z0-9-+., :;/\(\)&$§%€@#]+)',