From a5539e9d29dd9df88a56504d68712ebf291c3d50 Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Mon, 23 Jun 2014 14:34:31 +0200 Subject: [PATCH] baculum: Added example Lighttpd configuration for Baculum and sample web server auth file --- gui/baculum/examples/baculum.lighttpd.conf | 54 ++++++++++++++++++++++ gui/baculum/examples/baculum.users | 1 + 2 files changed, 55 insertions(+) create mode 100644 gui/baculum/examples/baculum.lighttpd.conf create mode 100644 gui/baculum/examples/baculum.users diff --git a/gui/baculum/examples/baculum.lighttpd.conf b/gui/baculum/examples/baculum.lighttpd.conf new file mode 100644 index 0000000000..d3fc3ab5f1 --- /dev/null +++ b/gui/baculum/examples/baculum.lighttpd.conf @@ -0,0 +1,54 @@ +# Baculum WebGUI tool for Bacula Community +# +# Web Server Configuration +# + +server.port = 9095 +server.username = "www-data" +server.groupname = "www-data" +server.name = "localhost" +server.document-root = "/var/www/baculum" +server.errorlog = "/var/www/baculum/protected/logs/baculum-error.log" +accesslog.filename = "/var/www/baculum/protected/logs/baculum-access.log" +server.pid-file = "/var/run/baculum.pid" + +server.modules = ( + "mod_auth", + "mod_rewrite", + "mod_fastcgi", + "mod_accesslog" +) + +auth.backend = "plain" +auth.backend.plain.userfile = "/var/www/baculum/protected/Data/baculum.users" +auth.require = ( "/" => ( + "method" => "basic", + "realm" => "Baculum Auth", + "require" => "valid-user" +)) + +index-file.names = ( "index.php" ) + +static-file.exclude-extensions = ( ".php" ) + +dir-listing.encoding = "utf-8" + +mimetype.assign = ( + ".html" => "text/html", + ".gif" => "image/gif", + ".png" => "image/png", + ".ico" => "image/x-icon", + ".css" => "text/css", + ".js" => "application/javascript", +) + +fastcgi.server = (".php"=>(( + "bin-path"=>"/usr/bin/php5-cgi", + "socket"=>"/tmp/php.socket" +))) + +url.rewrite-once = ( + "^/themes/(.+)$" => "/themes/$1", + "^/assets/(.+)$" => "/assets/$1", + "^/(.+)$" => "/index.php/$1" +) diff --git a/gui/baculum/examples/baculum.users b/gui/baculum/examples/baculum.users new file mode 100644 index 0000000000..3663ae8502 --- /dev/null +++ b/gui/baculum/examples/baculum.users @@ -0,0 +1 @@ +admin:admin \ No newline at end of file -- 2.39.5