diff --git a/.gitattributes b/.gitattributes index 9a296415f8aa3853331c37e4d40257cce6bb7970..0d1064d98a72025f202622444efc139ae4db17b4 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 0000000000000000000000000000000000000000..af10f5c14a52b559db929f77bd633645fbe8f93a --- /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 63fa7722b239495c3adf8d54a27de52d16aa9502..f27af47b508d874eda83aa3c0254deb2a923dfd6 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 0000000000000000000000000000000000000000..e0f1ee1826f922f041e557a16173f2a93835825e --- /dev/null +++ b/web_server/www/peasoup.auth/hello_world.txt @@ -0,0 +1 @@ +hello world.