Skip to content

Commit b258066

Browse files
committed
added lighttpd server config
1 parent dba34af commit b258066

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

lighttpd.conf

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
3+
$HTTP["host"] =~ "^.*\.perl-tutorial.org$" {
4+
url.redirect = ( "" => "http://perl-tutorial.org" )
5+
}
6+
7+
$HTTP["host"] =~ "^perl-tutorial.org$" {
8+
cgi.assign = ( "ikiwiki.cgi" => "", )
9+
server.document-root = "/home/perltuthub/public_html/PerlTutorialHub"
10+
accesslog.filename = "/var/log/lighttpd-perl-tuthub/access.log"
11+
12+
auth.backend = "htpasswd"
13+
auth.backend.htpasswd.userfile = "/home/perltuthub/.htpasswd-perltuthub"
14+
auth.require = (
15+
"/_statistics" => (
16+
"method" => "basic",
17+
"realm" => "Perl Tutorial Statistics",
18+
"require" => "user=stats"
19+
)
20+
)
21+
}

0 commit comments

Comments
 (0)