tips:httpslogin
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tips:httpslogin [2016-03-16 12:38] – [php Based HTTPS] 62.243.244.158 | tips:httpslogin [2018-09-29 11:31] (current) – [Apache] added example of a simple rule for https for all pages bruno.genere | ||
---|---|---|---|
Line 5: | Line 5: | ||
See https:// | See https:// | ||
=====Apache===== | =====Apache===== | ||
- | Using Apache' | + | Using Apache' |
- | You may want to read up on [[:rewrite|general | + | You may also need that all requests (and not only login) use HTTPS. To do so, create an .htaccess file in the root directory of DokuWiki and insert the following code. |
+ | <code apache .htaccess> | ||
+ | RewriteCond %{HTTPS} !on | ||
+ | RewriteRule (.*) https:// | ||
+ | </ | ||
+ | |||
+ | If you only want to force some specific URL, read up [[:rewrite|URL rewriting]] first. | ||
Redirection to a secured connection which is restricted to a certain set of pages (e.g. login pages) requires their recognition based on the URL. Some pages (e.g. " | Redirection to a secured connection which is restricted to a certain set of pages (e.g. login pages) requires their recognition based on the URL. Some pages (e.g. " |
tips/httpslogin.1458128335.txt.gz · Last modified: 2016-03-16 12:38 by 62.243.244.158 · Currently locked by: 125.228.216.16