From 87c69016c5e7458df84950ae4eb0b5833262a370 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Sat, 15 Oct 2016 19:20:18 +0200 Subject: Initial version It basically works --- htaccess-sample | 15 +++++++ htusers-sample | 12 +++++ login.html | 136 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 163 insertions(+) create mode 100644 htaccess-sample create mode 100644 htusers-sample create mode 100644 login.html diff --git a/htaccess-sample b/htaccess-sample new file mode 100644 index 0000000..dabf6a9 --- /dev/null +++ b/htaccess-sample @@ -0,0 +1,15 @@ +# this file must be named .htaccess +DirectoryIndex login.html + +AuthType Basic +AuthName "Password Protected Area" +AuthUserFile .htusers +Require valid-user + +# allow only the root directory (=login.html, see above) to be shown... +SetEnvIf Request_URI ^/$ noauth=1 +Satisfy any +order deny,allow +deny from all +Allow from env=noauth + diff --git a/htusers-sample b/htusers-sample new file mode 100644 index 0000000..dd91cf9 --- /dev/null +++ b/htusers-sample @@ -0,0 +1,12 @@ +# this file should contain combinations of usernames and passwords, divided by colons and separated +# by newlines: +# +# user1:password2 +# user2:password2 +# +# the passwords must not be inserted as plain text, but as hashes. To generate these hashes one can +# use: +# openssl passwd -crypt password1 +# +# lines starting with # are not recognized and can be used as comments + diff --git a/login.html b/login.html new file mode 100644 index 0000000..627308e --- /dev/null +++ b/login.html @@ -0,0 +1,136 @@ + + + + Ostsee - Verborgene Fracht - Login + + + +
+ + + +
+
+ + + + + + -- cgit v1.2.3