DirectoryIndex index.cgi
<Files session.cgi>
+ RewriteEngine On
+ RewriteCond %{SERVER_PORT} 80
+ RewriteRule ^.*(session.cgi.*)$ https://%{SERVER_NAME}/$1
+
AuthType Basic
AuthName "Busy Login"
AuthUserFile /sites/busy.plutz.net/http/auth/htpasswd
done
fi
-echo -n "Location: http://${user}:${pass}@${HTTP_HOST}/session.cgi?${QUERY_STRING}\n\n"
+echo -n "Location: https://${user}:${pass}@${HTTP_HOST}/session.cgi?${QUERY_STRING}\n\n"
AddHandler cgi-script .cgi
DirectoryIndex index.cgi
+RewriteEngine On
+RewriteCond %{SERVER_PORT} 80
+RewriteRule ^.*(/write/.*)$ https://%{SERVER_NAME}/$1
+
AuthType Basic
AuthName "Kinoserver Login"
AuthUserFile /sites/kinob.plutz.net/http/.htpasswd
[ -z "$cancel" -a -f "../Wiki/$info" ] && mv "../Wiki/$info" "../Wiki/$info.$(date +%s)"
[ -z "$cancel" ] && echo -e "${page}" >"../Wiki/$info"
-echo -n "Location: http://${HTTP_HOST}/?p=Wiki&i=$info\n\n"
+echo -n "Location: https://${HTTP_HOST}/?p=Wiki&i=$info\n\n"
touch "../Wiki/$info"
echo -e "author=${REMOTE_USER}" > "$commfile"
echo -e "${comment}" >> "$commfile"
- echo -n "Location: http://${HTTP_HOST}/?p=Wiki&i=$info\n\n"
+ echo -n "Location: https://${HTTP_HOST}/?p=Wiki&i=$info\n\n"
elif [ -z "$cancel" -a -n "$description" ]; then
touch "../Wiki/$info"
echo -e "title=${title}" > "$descfile"
echo -e "description=${description}" >> "$descfile"
- echo -n "Location: http://${HTTP_HOST}/?p=Wiki#$anchor\n\n"
+ echo -n "Location: https://${HTTP_HOST}/?p=Wiki#$anchor\n\n"
elif [ -n "$cancel" ]; then
- echo -n "Location: http://${HTTP_HOST}/?p=Wiki#$anchor\n\n"
+ echo -n "Location: https://${HTTP_HOST}/?p=Wiki#$anchor\n\n"
fi