From 9f9efbccc97ac7ce45c457301861631780d1b441 Mon Sep 17 00:00:00 2001 From: bdr7fv <bdr7fv@git.zephyr-software.com> Date: Tue, 18 Jun 2013 17:57:06 +0000 Subject: [PATCH] Set up files for lighttpd authentication. Former-commit-id: 18a429ceb449bab8d7aa4643971a5a6a0b1967b2 --- .gitattributes | 2 ++ web_server/.lighttpdpassword | 1 + web_server/lighttpd_conf_template | 17 +++++++++++++++++ web_server/www/peasoup.auth/hello_world.txt | 1 + 4 files changed, 21 insertions(+) create mode 100644 web_server/.lighttpdpassword create mode 100644 web_server/www/peasoup.auth/hello_world.txt diff --git a/.gitattributes b/.gitattributes index 9a296415f..0d1064d98 100644 --- a/.gitattributes +++ b/.gitattributes @@ -6292,11 +6292,13 @@ tools/signatures/sqlite.sigs -text tools/test_controller.sh -text tools/update_env_var.sh -text tools/validate.sh -text +web_server/.lighttpdpassword -text web_server/lighttpd_conf_template -text web_server/www/hello_world.txt -text web_server/www/index.html -text web_server/www/index.lighttpd.html -text web_server/www/no_extension -text +web_server/www/peasoup.auth/hello_world.txt -text web_server/www/peasoup.auth/index.html -text web_server/www/peasoup/index.html -text web_server/www/peasoup/peasoup.jpg -text diff --git a/web_server/.lighttpdpassword b/web_server/.lighttpdpassword new file mode 100644 index 000000000..af10f5c14 --- /dev/null +++ b/web_server/.lighttpdpassword @@ -0,0 +1 @@ +guest:password diff --git a/web_server/lighttpd_conf_template b/web_server/lighttpd_conf_template index 63fa7722b..f27af47b5 100644 --- a/web_server/lighttpd_conf_template +++ b/web_server/lighttpd_conf_template @@ -31,3 +31,20 @@ compress.filetype = ( "application/x-javascript", "text/css", "text/ht include_shell "/usr/share/lighttpd/create-mime.assign.pl" include_shell "/usr/share/lighttpd/include-conf-enabled.pl" + +#configurations for peasoup + +server.port=1235 + +#authentication setup +auth.require = ( "/peasoup.auth/" => +( +"method" => "basic", +"realm" => "Password protected area", +"require" => "user=guest" +) +) + +server.modules += ( "mod_auth" ) +auth.debug = 0 +auth.backend = "plain" diff --git a/web_server/www/peasoup.auth/hello_world.txt b/web_server/www/peasoup.auth/hello_world.txt new file mode 100644 index 000000000..e0f1ee182 --- /dev/null +++ b/web_server/www/peasoup.auth/hello_world.txt @@ -0,0 +1 @@ +hello world. -- GitLab