Not logged in. · Lost password · Register
Forum: General Help and Support Installation and Configuration RSS
https
on server without admin rights
Avatar
set321go #1
Member since Oct 2008 · 4 posts
Group memberships: Members
Show profile · Link to this post
Subject: https
****SOLVED****

hello

ive installed docuwiki on a server that i dont have admin rights on, how do i get docu wiki to use https on login, i know the server has https enabled as other pages use it for login.. help?
alex
This post was edited on 2008-10-30, 15:44 by set321go.
Avatar
berndB #2
Member since Apr 2008 · 14 posts · Location: Berlin, Germany
Group memberships: Members
Show profile · Link to this post
What happens if you just change the login URL manually to https://... ?
Avatar
set321go #3
Member since Oct 2008 · 4 posts
Group memberships: Members
Show profile · Link to this post
yeah that works, so how to i do that by default?
chi #4
Member since Jun 2006 · 1851 posts · Location: Munich Germany
Group memberships: Members, Super Mods, Wiki Managers
Show profile · Link to this post
You can use a .htaccess file to force a redirect of http requests to https.
Please add [SOLVED] to the initial thread subject if you feel your question has been answered.
If my answer doesn't make sense maybe your question didn't either - just visit http://facepalm.org.
Avatar
berndB #5
Member since Apr 2008 · 14 posts · Location: Berlin, Germany
Group memberships: Members
Show profile · Link to this post
In reply to post #3
On my site, if I start with https://mysite.de/wiki, see the start page, klick [Login] -> the login continues to be processed via https.
So just use or publish the https-URL whereever you published the http-URL before and it works naturally.

Special coding is only neccessary if you want the site to switch from http to https and back, like i.e. Ebay does it, for performance reasons.
Avatar
set321go #6
Member since Oct 2008 · 4 posts
Group memberships: Members
Show profile · Link to this post
hey guys. thanks for the replies. i have tried editing my .htacess file but im not really sure what im doing. i tried adding

redirect /my/directory/docu.php https://mysite/my/directory/docu.php

but it didnt do anything!! I cant find the login script either, where does that live?

berndB i can do that but that allows somebody to add access your site via http change the .htaccess so that now all your traffic is sent in the clear. I agree some may notice the lack of https but many would not.
Avatar
berndB #7
Member since Apr 2008 · 14 posts · Location: Berlin, Germany
Group memberships: Members
Show profile · Link to this post
Interesting syntax for rewrite - have you tried reading the manual?
http://httpd.apache.org/docs/2.2/rewrite/

Ok, here's a short answer:
http://www.besthostratings.com/articles/force-ssl-htaccess…

There is no login script in dokuwiki, it uses a page controller.
So, just publish the https://yoursite.com/wikidirectory  URL and it works fine.
Avatar
P3P #8
Member since Oct 2008 · 5 posts
Group memberships: Members
Show profile · Link to this post
Subject: The security page explains how to force SSL at Login
The security page explains how to force SSL at Login
Force SSL at Login

# We want to encrypt all pages over which passwords might be sent
# Includes: login, logout, profile (password change), admin menu (user manager)
RewriteCond %{HTTPS} !on
RewriteCond %{QUERY_STRING} do=(log|profile|admin)
RewriteRule ^(.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,QSA,L]

# Change back to non-secure for all other pages
RewriteCond %{HTTPS} on
RewriteCond %{QUERY_STRING} !do=(log|profile|admin)
RewriteCond %{REQUEST_METHOD} GET
RewriteRule ^(.*) http://%{HTTP_HOST}%{REQUEST_URI} [R,QSA,L]
Avatar
set321go #9
Member since Oct 2008 · 4 posts
Group memberships: Members
Show profile · Link to this post
thanks for the help guys much appreciated. do you makr posts as solved?
 i cant find it if you do

thanks again
chi #10
Member since Jun 2006 · 1851 posts · Location: Munich Germany
Group memberships: Members, Super Mods, Wiki Managers
Show profile · Link to this post
Quote by set321go:
thanks for the help guys much appreciated. do you makr posts as solved?
 i cant find it if you do

thanks again

Just edit your fist post ;-)
Please add [SOLVED] to the initial thread subject if you feel your question has been answered.
If my answer doesn't make sense maybe your question didn't either - just visit http://facepalm.org.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-01-18, 13:10:29 (UTC +01:00)