Loading...
 
Skip to main content

Architecture / Installation


https login problem

Just installed 1.9.4. I go to the tiki-index.php page of the newly installed tiki via https. I try to login as admin/admin, but it wants to redirect me to tiki-change_password.php via http which then hits my redirect virtual host and strips out the tiki root directory so that I get 404 tiki-change_password.php not found. How do I configure tiki so that it always uses https? I apologize if this is a stupid question. Thanks for any tips.

> Just installed 1.9.4. I go to the tiki-index.php page of the newly installed tiki via https. I try to login as admin/admin, but it wants to redirect me to tiki-change_password.php via http which then hits my redirect virtual host and strips out the tiki root directory so that I get 404 tiki-change_password.php not found. How do I configure tiki so that it always uses https? I apologize if this is a stupid question. Thanks for any tips.

I forget where I found this recipe, but assuming that ssl is enabled in the apache httpd.conf , I inserted the following lines into the .htaccess file in the root tiki directory to rewrite any http requests to https:

 RewriteEngine on
 Options +FollowSymLinks
 RewriteCond %{SERVER_PORT} !^443$
 RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]

Also, in tiki Administration:Login I have checked allow secure login, and have entered the https server name and port. Once I got it working, then I checked the require secure login option.

So far this seems to be working. The one problem I have noticed is with the WIki Drawing plugin, which fails to save the images when I use the above rewrite rules.