381 | | \\ |
382 | | \\ |
383 | | \\ |
384 | | \\ |
| 382 | === How can I enable SSL support in Dolphin? === |
| 383 | |
| 384 | Dolphin already supports SSL "out of the box". |
| 385 | Of course, you need to generate an SSL certificate and get it signed preliminary. |
| 386 | If you need more info on this, look [http://info.ssl.com/Article.aspx?id=10694 here]. |
| 387 | |
| 388 | So, how can you enable SSL in Dolphin? |
| 389 | All you need to do is just edit one file, namely '''inc/header.inc.php'''. |
| 390 | This file contains configuration for your Dolphin installation. |
| 391 | |
| 392 | '''1)''' Find the line starting with something like: |
| 393 | {{{ |
| 394 | $site['url'] = "http://mysite.com/"; |
| 395 | }}} |
| 396 | and replace '''http''' with '''https''': |
| 397 | {{{ |
| 398 | $site['url'] = "https://mysite.com/"; |
| 399 | }}} |
| 400 | |
| 401 | '''2)''' Find the line which looks exactly this way: |
| 402 | {{{ |
| 403 | header( "Location:http://{$aUrl['host']}{$_SERVER['REQUEST_URI']}" ); |
| 404 | }}} |
| 405 | and replace it with |
| 406 | {{{ |
| 407 | header( "Location:https://{$aUrl['host']}{$_SERVER['REQUEST_URI']}" ); |
| 408 | }}} |
| 409 | |
| 410 | Well, this should do the job :-) |
| 411 | |
| 412 | |