nitro 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/{ChangeLog → CHANGELOG} +137 -0
- data/INSTALL +1 -2
- data/README +1 -1
- data/Rakefile +10 -61
- data/benchmark/{nitro/bench.rb → bench.rb} +1 -1
- data/benchmark/{nitro/simple-webrick-n-200.txt → simple-webrick-n-200.txt} +0 -0
- data/benchmark/{nitro/static-webrick-n-200.txt → static-webrick-n-200.txt} +0 -0
- data/benchmark/{nitro/tiny-lhttpd-n-200-c-5.txt → tiny-lhttpd-n-200-c-5.txt} +0 -0
- data/benchmark/{nitro/tiny-webrick-n-200-c-5.txt → tiny-webrick-n-200-c-5.txt} +0 -0
- data/benchmark/{nitro/tiny-webrick-n-200.txt → tiny-webrick-n-200.txt} +0 -0
- data/benchmark/{nitro/tiny2-webrick-n-200.txt → tiny2-webrick-n-200.txt} +0 -0
- data/doc/{ChangeLog.1 → CHANGELOG.1} +0 -0
- data/{RELEASES → doc/RELEASES} +46 -0
- data/doc/faq.txt +7 -0
- data/examples/README.windows +1 -1
- data/examples/ajax/controller.rb +21 -0
- data/examples/ajax/public/index.xhtml +70 -0
- data/examples/ajax/public/js/ajax.js +64 -0
- data/examples/ajax/run.rb +16 -0
- data/examples/blog/README +6 -3
- data/examples/blog/conf/apache.conf +2 -2
- data/examples/blog/conf/lhttpd.conf +2 -2
- data/examples/blog/log/apache.error_log +777 -0
- data/examples/blog/{root → public}/base.xsl +0 -0
- data/examples/blog/{root → public}/fcgi.rb +0 -0
- data/examples/blog/{root → public}/m/bubbles.gif +0 -0
- data/examples/blog/{root → public}/m/comments_curve.gif +0 -0
- data/examples/blog/{root → public}/m/down.gif +0 -0
- data/examples/blog/{root → public}/m/footer_bg.gif +0 -0
- data/examples/blog/{root → public}/m/garrow.gif +0 -0
- data/examples/blog/{root → public}/m/gbull.gif +0 -0
- data/examples/blog/{root → public}/m/grbull.gif +0 -0
- data/examples/blog/{root → public}/m/h1_bg.gif +0 -0
- data/examples/blog/{root → public}/m/header_bg.gif +0 -0
- data/examples/blog/{root → public}/m/nitro.gif +0 -0
- data/examples/blog/{root → public}/m/obull.gif +0 -0
- data/examples/blog/{root → public}/m/page_bg.gif +0 -0
- data/examples/blog/{root → public}/m/rss.gif +0 -0
- data/examples/blog/{root → public}/m/side_title_bg.gif +0 -0
- data/examples/blog/{root → public}/m/sidebar_bg.gif +0 -0
- data/examples/{no_xsl_blog/root → blog/public}/style.css +6 -0
- data/examples/blog/run.rb +10 -12
- data/examples/blog/{lib → src}/blog.rb +3 -3
- data/examples/blog/{lib/blog → src}/controller.rb +13 -2
- data/examples/blog/src/mailer.rb +23 -0
- data/examples/blog/{lib/blog/model.rb → src/models/blog.rb} +4 -7
- data/examples/blog/src/models/content.rb +52 -0
- data/examples/blog/src/views/blog_entry_email.xhtml +16 -0
- data/examples/blog/{root → src/views}/comments.xhtml +0 -0
- data/examples/blog/{root → src/views}/entry_form.xhtml +0 -0
- data/examples/blog/{root → src/views}/error.xhtml +0 -0
- data/examples/blog/{root → src/views}/index.xhtml +0 -0
- data/examples/blog/{root → src/views}/login.xhtml +0 -0
- data/examples/blog/{root → src/views}/recent_posts.xhtml +0 -0
- data/examples/blog/{root → src/views}/view_entry.xhtml +8 -0
- data/examples/blog/{root → src/views}/view_entry.xml +0 -0
- data/examples/blog/src/xsl/base.xsl +153 -0
- data/examples/blog/{root → src/xsl}/style.xsl +2 -2
- data/examples/no_xsl_blog/README +5 -1
- data/examples/no_xsl_blog/conf/apache.conf +2 -2
- data/examples/no_xsl_blog/conf/lhttpd.conf +2 -2
- data/examples/no_xsl_blog/lib/blog/model.rb +1 -1
- data/{lib/parts → examples/no_xsl_blog/lib}/content.rb +1 -11
- data/examples/no_xsl_blog/log/apache.error_log +405 -0
- data/examples/no_xsl_blog/{root → public}/comments.xhtml +0 -0
- data/examples/no_xsl_blog/{root → public}/entry_form.xhtml +0 -0
- data/examples/no_xsl_blog/{root → public}/fcgi.rb +0 -0
- data/examples/no_xsl_blog/{root → public}/index.xhtml +0 -0
- data/examples/no_xsl_blog/{root → public}/login.xhtml +0 -0
- data/examples/no_xsl_blog/{root → public}/m/bubbles.gif +0 -0
- data/examples/no_xsl_blog/{root → public}/m/comments_curve.gif +0 -0
- data/examples/no_xsl_blog/{root → public}/m/down.gif +0 -0
- data/examples/no_xsl_blog/{root → public}/m/footer_bg.gif +0 -0
- data/examples/no_xsl_blog/{root → public}/m/garrow.gif +0 -0
- data/examples/no_xsl_blog/{root → public}/m/gbull.gif +0 -0
- data/examples/no_xsl_blog/{root → public}/m/grbull.gif +0 -0
- data/examples/no_xsl_blog/{root → public}/m/h1_bg.gif +0 -0
- data/examples/no_xsl_blog/{root → public}/m/header_bg.gif +0 -0
- data/examples/no_xsl_blog/{root → public}/m/nitro.gif +0 -0
- data/examples/no_xsl_blog/{root → public}/m/obull.gif +0 -0
- data/examples/no_xsl_blog/{root → public}/m/page_bg.gif +0 -0
- data/examples/no_xsl_blog/{root → public}/m/rss.gif +0 -0
- data/examples/no_xsl_blog/{root → public}/m/side_title_bg.gif +0 -0
- data/examples/no_xsl_blog/{root → public}/m/sidebar_bg.gif +0 -0
- data/examples/no_xsl_blog/{root → public}/recent_posts.xhtml +0 -0
- data/examples/{blog/root → no_xsl_blog/public}/style.css +0 -0
- data/examples/no_xsl_blog/{root → public}/view_entry.xhtml +0 -0
- data/examples/no_xsl_blog/{root → public}/view_entry.xml +0 -0
- data/examples/tiny/conf/apache.conf +2 -2
- data/examples/tiny/log/apache.error_log +100 -0
- data/examples/tiny/{root → public}/fcgi.rb +0 -0
- data/examples/tiny/{root → public}/include.xhtml +0 -0
- data/examples/tiny/{root → public}/index.xhtml +0 -0
- data/{bin/proto/root/m → examples/tiny/public}/nitro.png +0 -0
- data/examples/tiny/{root → public}/upload.xhtml +0 -0
- data/examples/tiny/run.rb +1 -2
- data/examples/why_wiki/wiki.yml +1 -0
- data/install.rb +5 -2
- data/lib/nitro.rb +2 -6
- data/lib/nitro/adapters/fastcgi.rb +2 -2
- data/lib/nitro/adapters/webrick.rb +4 -4
- data/lib/nitro/conf.rb +5 -2
- data/lib/nitro/controller.rb +2 -2
- data/lib/nitro/dispatcher.rb +19 -8
- data/lib/nitro/mail.rb +252 -8
- data/lib/nitro/render.rb +24 -21
- data/lib/nitro/runner.rb +1 -1
- data/lib/nitro/scaffold.rb +2 -5
- data/lib/nitro/simple.rb +2 -1
- data/lib/nitro/template.rb +42 -2
- data/test/nitro/tc_controller.rb +9 -4
- data/test/nitro/tc_dispatcher.rb +4 -6
- data/test/nitro/tc_mail.rb +95 -0
- data/test/{root → public}/blog/list.xhtml +0 -0
- data/test/public/dummy_mailer/registration.xhtml +5 -0
- data/vendor/README +0 -1
- metadata +136 -181
- data/benchmark/og/bench.rb +0 -75
- data/benchmark/og/sqlite-no-prepare.1.txt +0 -13
- data/benchmark/og/sqlite-no-prepare.2.txt +0 -13
- data/benchmark/og/sqlite-prepare.1.txt +0 -13
- data/benchmark/og/sqlite-prepare.2.txt +0 -13
- data/bin/proto/README +0 -34
- data/bin/proto/conf/apache.conf +0 -1
- data/bin/proto/conf/app.conf.rb +0 -14
- data/bin/proto/conf/lhttpd.conf +0 -236
- data/bin/proto/ctl +0 -4
- data/bin/proto/lib/README +0 -5
- data/bin/proto/log/README +0 -3
- data/bin/proto/root/fcgi.rb +0 -6
- data/bin/proto/root/index.xhtml +0 -69
- data/bin/proto/root/style.css +0 -152
- data/bin/proto/root/style.xsl +0 -99
- data/doc/og_config.txt +0 -35
- data/doc/og_tutorial.txt +0 -595
- data/examples/og/README +0 -11
- data/examples/og/mock_example.rb +0 -50
- data/examples/og/mysql_to_psql.rb +0 -96
- data/examples/og/run.rb +0 -286
- data/examples/tiny/root/nitro.png +0 -0
- data/lib/glue.rb +0 -55
- data/lib/glue/array.rb +0 -61
- data/lib/glue/attribute.rb +0 -83
- data/lib/glue/cache.rb +0 -138
- data/lib/glue/flexob.rb +0 -12
- data/lib/glue/hash.rb +0 -122
- data/lib/glue/inflector.rb +0 -91
- data/lib/glue/logger.rb +0 -147
- data/lib/glue/misc.rb +0 -14
- data/lib/glue/mixins.rb +0 -36
- data/lib/glue/number.rb +0 -24
- data/lib/glue/object.rb +0 -32
- data/lib/glue/pool.rb +0 -60
- data/lib/glue/property.rb +0 -408
- data/lib/glue/string.rb +0 -162
- data/lib/glue/time.rb +0 -85
- data/lib/glue/validation.rb +0 -394
- data/lib/og.rb +0 -185
- data/lib/og/adapter.rb +0 -513
- data/lib/og/adapters/filesys.rb +0 -121
- data/lib/og/adapters/mysql.rb +0 -347
- data/lib/og/adapters/oracle.rb +0 -375
- data/lib/og/adapters/psql.rb +0 -273
- data/lib/og/adapters/sqlite.rb +0 -262
- data/lib/og/backend.rb +0 -297
- data/lib/og/connection.rb +0 -304
- data/lib/og/database.rb +0 -282
- data/lib/og/enchant.rb +0 -125
- data/lib/og/meta.rb +0 -373
- data/lib/og/mock.rb +0 -165
- data/lib/og/observer.rb +0 -53
- data/lib/og/typemacros.rb +0 -23
- data/lib/parts/README +0 -9
- data/test/glue/tc_attribute.rb +0 -22
- data/test/glue/tc_cache.rb +0 -45
- data/test/glue/tc_hash.rb +0 -38
- data/test/glue/tc_logger.rb +0 -39
- data/test/glue/tc_numbers.rb +0 -20
- data/test/glue/tc_property.rb +0 -89
- data/test/glue/tc_property_mixins.rb +0 -93
- data/test/glue/tc_property_type_checking.rb +0 -35
- data/test/glue/tc_strings.rb +0 -103
- data/test/glue/tc_validation.rb +0 -188
- data/test/og/tc_filesys.rb +0 -83
- data/test/og/tc_lifecycle.rb +0 -104
- data/test/og/tc_many_to_many.rb +0 -62
- data/test/og/tc_meta.rb +0 -55
- data/test/og/tc_observer.rb +0 -85
- data/test/og/tc_sqlite.rb +0 -87
- data/test/tc_og.rb +0 -355
- data/vendor/composite_sexp_processor.rb +0 -43
- data/vendor/parse_tree.rb +0 -745
- data/vendor/sexp_processor.rb +0 -453
data/benchmark/og/bench.rb
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
# * George Moschovitis <gm@navel.gr>
|
|
2
|
-
# (c) 2004-2005 Navel, all rights reserved.
|
|
3
|
-
# $Id: bench.rb 263 2005-02-23 13:45:08Z gmosx $
|
|
4
|
-
|
|
5
|
-
require 'og'; include Og
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
config = {
|
|
9
|
-
:adapter => 'sqlite',
|
|
10
|
-
:database => 'test',
|
|
11
|
-
:connection_count => 5
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
class Article
|
|
15
|
-
prop_accessor :title, String
|
|
16
|
-
prop_accessor :body, String
|
|
17
|
-
prop_accessor :hits, Fixnum
|
|
18
|
-
prop_accessor :rate, Fixnum
|
|
19
|
-
|
|
20
|
-
def initialize(title = nil, body = nil)
|
|
21
|
-
@title = title
|
|
22
|
-
@body = body
|
|
23
|
-
@hits = rand(5)
|
|
24
|
-
@rate = rand(100)
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
|
|
28
|
-
Database.drop_db!(config)
|
|
29
|
-
db = Database.new(config)
|
|
30
|
-
|
|
31
|
-
# Benchmark the insert speed. Useful for finding
|
|
32
|
-
# the improvement when using prepared statements.
|
|
33
|
-
|
|
34
|
-
articles = []
|
|
35
|
-
|
|
36
|
-
500.times do |i|
|
|
37
|
-
articles << Article.new("Title#{i}", "Body#{i}")
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
sum = 0
|
|
41
|
-
min = 999999
|
|
42
|
-
max = -min
|
|
43
|
-
|
|
44
|
-
GC.disable
|
|
45
|
-
|
|
46
|
-
10.times do |i|
|
|
47
|
-
|
|
48
|
-
db.exec "DELETE FROM #{Article::DBTABLE}"
|
|
49
|
-
|
|
50
|
-
for article in articles
|
|
51
|
-
article.oid = nil
|
|
52
|
-
end
|
|
53
|
-
|
|
54
|
-
Article.create("Dummy", "Dummy")
|
|
55
|
-
|
|
56
|
-
t1 = Time.now
|
|
57
|
-
articles.each do |a|
|
|
58
|
-
a.save!
|
|
59
|
-
end
|
|
60
|
-
t2 = Time.now
|
|
61
|
-
|
|
62
|
-
d = t2 - t1
|
|
63
|
-
sum += d
|
|
64
|
-
min = d if d < min
|
|
65
|
-
max = d if d > max
|
|
66
|
-
|
|
67
|
-
puts "Insert test #{i}: #{d} seconds"
|
|
68
|
-
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
puts %{
|
|
72
|
-
Min: #{min}
|
|
73
|
-
Max: #{max}
|
|
74
|
-
Average: #{sum/10}
|
|
75
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
Insert test 0: 3.53403 seconds
|
|
2
|
-
Insert test 1: 4.222878 seconds
|
|
3
|
-
Insert test 2: 3.84379 seconds
|
|
4
|
-
Insert test 3: 3.877513 seconds
|
|
5
|
-
Insert test 4: 3.793392 seconds
|
|
6
|
-
Insert test 5: 3.725927 seconds
|
|
7
|
-
Insert test 6: 3.814542 seconds
|
|
8
|
-
Insert test 7: 3.760054 seconds
|
|
9
|
-
Insert test 8: 3.936868 seconds
|
|
10
|
-
Insert test 9: 4.061833 seconds
|
|
11
|
-
Min: 3.53403
|
|
12
|
-
Max: 4.222878
|
|
13
|
-
Average: 3.8570827
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
Insert test 0: 4.050384 seconds
|
|
2
|
-
Insert test 1: 4.098912 seconds
|
|
3
|
-
Insert test 2: 3.739213 seconds
|
|
4
|
-
Insert test 3: 4.030227 seconds
|
|
5
|
-
Insert test 4: 4.061516 seconds
|
|
6
|
-
Insert test 5: 3.963748 seconds
|
|
7
|
-
Insert test 6: 4.088462 seconds
|
|
8
|
-
Insert test 7: 4.047734 seconds
|
|
9
|
-
Insert test 8: 3.966496 seconds
|
|
10
|
-
Insert test 9: 3.948346 seconds
|
|
11
|
-
Min: 3.739213
|
|
12
|
-
Max: 4.098912
|
|
13
|
-
Average: 3.9995038
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
Insert test 0: 3.578891 seconds
|
|
2
|
-
Insert test 1: 4.257714 seconds
|
|
3
|
-
Insert test 2: 3.535036 seconds
|
|
4
|
-
Insert test 3: 3.742329 seconds
|
|
5
|
-
Insert test 4: 3.874829 seconds
|
|
6
|
-
Insert test 5: 3.608657 seconds
|
|
7
|
-
Insert test 6: 3.843804 seconds
|
|
8
|
-
Insert test 7: 3.688756 seconds
|
|
9
|
-
Insert test 8: 3.858303 seconds
|
|
10
|
-
Insert test 9: 3.739155 seconds
|
|
11
|
-
Min: 3.535036
|
|
12
|
-
Max: 4.257714
|
|
13
|
-
Average: 3.7727474
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
Insert test 0: 3.859916 seconds
|
|
2
|
-
Insert test 1: 4.321912 seconds
|
|
3
|
-
Insert test 2: 3.836067 seconds
|
|
4
|
-
Insert test 3: 4.077798 seconds
|
|
5
|
-
Insert test 4: 4.171512 seconds
|
|
6
|
-
Insert test 5: 4.148027 seconds
|
|
7
|
-
Insert test 6: 3.841498 seconds
|
|
8
|
-
Insert test 7: 3.94367 seconds
|
|
9
|
-
Insert test 8: 3.758128 seconds
|
|
10
|
-
Insert test 9: 4.25072 seconds
|
|
11
|
-
Min: 3.758128
|
|
12
|
-
Max: 4.321912
|
|
13
|
-
Average: 4.0209248
|
data/bin/proto/README
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
= Your application
|
|
2
|
-
|
|
3
|
-
Here comes the README file for your application.
|
|
4
|
-
|
|
5
|
-
== Configuration
|
|
6
|
-
|
|
7
|
-
Edit the file conf/app.conf.rb as needed.
|
|
8
|
-
|
|
9
|
-
By default this skeleton app uses the PostgreSQL backend.
|
|
10
|
-
If you want to use a different backend dont forget to
|
|
11
|
-
change it for the DEBUG and LIVE configurations.
|
|
12
|
-
|
|
13
|
-
== Run
|
|
14
|
-
|
|
15
|
-
Exec the following command:
|
|
16
|
-
|
|
17
|
-
./ctl
|
|
18
|
-
|
|
19
|
-
then point your browser to:
|
|
20
|
-
|
|
21
|
-
http://127.0.0.1:8080
|
|
22
|
-
|
|
23
|
-
(if you want to change the server address/port, edit the config.rb
|
|
24
|
-
file)
|
|
25
|
-
|
|
26
|
-
== Discussion
|
|
27
|
-
|
|
28
|
-
If you want to modify the skeleton app it is a nice idea to switch
|
|
29
|
-
to debug mode. Edit the following line in the file app.rb:
|
|
30
|
-
|
|
31
|
-
$DBG = true
|
|
32
|
-
|
|
33
|
-
In debug mode the view files (xhtml/xsl/etc) are automatically
|
|
34
|
-
reloaded.
|
data/bin/proto/conf/apache.conf
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# coming soon :)
|
data/bin/proto/conf/app.conf.rb
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# * George Moschovitis <gm@navel.gr>
|
|
2
|
-
# (c) 2004-2005 Navel, all rights reserved.
|
|
3
|
-
# $Id$
|
|
4
|
-
|
|
5
|
-
# $DBG = true
|
|
6
|
-
|
|
7
|
-
require 'nitro'
|
|
8
|
-
require 'nitro/session'
|
|
9
|
-
|
|
10
|
-
$conf = {
|
|
11
|
-
:host => 'localhost',
|
|
12
|
-
:port => 8080,
|
|
13
|
-
:dispatcher => N::Dispatcher.new
|
|
14
|
-
}
|
data/bin/proto/conf/lhttpd.conf
DELETED
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
# lighttpd configuration file
|
|
2
|
-
# $Id$
|
|
3
|
-
|
|
4
|
-
############ Options you really have to take care of ####################
|
|
5
|
-
|
|
6
|
-
## modules to load
|
|
7
|
-
# at least mod_access and mod_accesslog should be loaded
|
|
8
|
-
# all other module should only be loaded if really neccesary
|
|
9
|
-
# - saves some time
|
|
10
|
-
# - saves memory
|
|
11
|
-
|
|
12
|
-
server.modules = (
|
|
13
|
-
"mod_rewrite",
|
|
14
|
-
# "mod_redirect",
|
|
15
|
-
"mod_access",
|
|
16
|
-
# "mod_auth",
|
|
17
|
-
# "mod_status",
|
|
18
|
-
"mod_fastcgi",
|
|
19
|
-
# "mod_simple_vhost",
|
|
20
|
-
# "mod_evhost",
|
|
21
|
-
# "mod_cgi",
|
|
22
|
-
# "mod_compress",
|
|
23
|
-
# "mod_ssi",
|
|
24
|
-
# "mod_usertrack",
|
|
25
|
-
# "mod_rrdtool",
|
|
26
|
-
"mod_accesslog"
|
|
27
|
-
)
|
|
28
|
-
|
|
29
|
-
## a static document-root, for virtual-hosting take look at the
|
|
30
|
-
## server.virtual-* options
|
|
31
|
-
server.document-root = "/home/gmosx/navel/nitro/examples/tiny/root/"
|
|
32
|
-
|
|
33
|
-
## where to send error-messages to
|
|
34
|
-
server.errorlog = "/home/gmosx/navel/nitro/examples/tiny/log/lighttpd.error.log"
|
|
35
|
-
|
|
36
|
-
# files to check for if .../ is requested
|
|
37
|
-
server.indexfiles = ( "index.html" )
|
|
38
|
-
|
|
39
|
-
# mimetype mapping
|
|
40
|
-
mimetype.assign = (
|
|
41
|
-
".pdf" => "application/pdf",
|
|
42
|
-
".sig" => "application/pgp-signature",
|
|
43
|
-
".spl" => "application/futuresplash",
|
|
44
|
-
".class" => "application/octet-stream",
|
|
45
|
-
".ps" => "application/postscript",
|
|
46
|
-
".torrent" => "application/x-bittorrent",
|
|
47
|
-
".dvi" => "application/x-dvi",
|
|
48
|
-
".gz" => "application/x-gzip",
|
|
49
|
-
".pac" => "application/x-ns-proxy-autoconfig",
|
|
50
|
-
".swf" => "application/x-shockwave-flash",
|
|
51
|
-
".tar.gz" => "application/x-tgz",
|
|
52
|
-
".tgz" => "application/x-tgz",
|
|
53
|
-
".tar" => "application/x-tar",
|
|
54
|
-
".zip" => "application/zip",
|
|
55
|
-
".mp3" => "audio/mpeg",
|
|
56
|
-
".m3u" => "audio/x-mpegurl",
|
|
57
|
-
".wma" => "audio/x-ms-wma",
|
|
58
|
-
".wax" => "audio/x-ms-wax",
|
|
59
|
-
".ogg" => "audio/x-wav",
|
|
60
|
-
".wav" => "audio/x-wav",
|
|
61
|
-
".gif" => "image/gif",
|
|
62
|
-
".jpg" => "image/jpeg",
|
|
63
|
-
".jpeg" => "image/jpeg",
|
|
64
|
-
".png" => "image/png",
|
|
65
|
-
".xbm" => "image/x-xbitmap",
|
|
66
|
-
".xpm" => "image/x-xpixmap",
|
|
67
|
-
".xwd" => "image/x-xwindowdump",
|
|
68
|
-
".css" => "text/css",
|
|
69
|
-
".html" => "text/html",
|
|
70
|
-
".htm" => "text/html",
|
|
71
|
-
".js" => "text/javascript",
|
|
72
|
-
".asc" => "text/plain",
|
|
73
|
-
".c" => "text/plain",
|
|
74
|
-
".conf" => "text/plain",
|
|
75
|
-
".text" => "text/plain",
|
|
76
|
-
".txt" => "text/plain",
|
|
77
|
-
".dtd" => "text/xml",
|
|
78
|
-
".xml" => "text/xml",
|
|
79
|
-
".mpeg" => "video/mpeg",
|
|
80
|
-
".mpg" => "video/mpeg",
|
|
81
|
-
".mov" => "video/quicktime",
|
|
82
|
-
".qt" => "video/quicktime",
|
|
83
|
-
".avi" => "video/x-msvideo",
|
|
84
|
-
".asf" => "video/x-ms-asf",
|
|
85
|
-
".asx" => "video/x-ms-asf",
|
|
86
|
-
".wmv" => "video/x-ms-wmv"
|
|
87
|
-
)
|
|
88
|
-
|
|
89
|
-
# Use the "Content-Type" extended attribute to obtain mime type if possible
|
|
90
|
-
# mimetypes.use-xattr = "enable"
|
|
91
|
-
|
|
92
|
-
#### accesslog module
|
|
93
|
-
accesslog.filename = "/home/gmosx/navel/nitro/examples/tiny/log/access.log"
|
|
94
|
-
|
|
95
|
-
## deny access the file-extensions
|
|
96
|
-
#
|
|
97
|
-
# ~ is for backupfiles from vi, emacs, joe, ...
|
|
98
|
-
# .inc is often used for code includes which should in general not be part
|
|
99
|
-
# of the document-root
|
|
100
|
-
url.access-deny = ( "~", ".inc" )
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
######### Options that are good to be but not neccesary to be changed #######
|
|
105
|
-
|
|
106
|
-
## bind to port (default: 80)
|
|
107
|
-
server.port = 8080
|
|
108
|
-
|
|
109
|
-
## bind to localhost (default: all interfaces)
|
|
110
|
-
#server.bind = "grisu.home.kneschke.de"
|
|
111
|
-
|
|
112
|
-
## error-handler for status 404
|
|
113
|
-
#server.error-handler-404 = "/error-handler.html"
|
|
114
|
-
#server.error-handler-404 = "/error-handler.php"
|
|
115
|
-
|
|
116
|
-
## to help the rc.scripts
|
|
117
|
-
# server.pid-file = "/var/run/lighttpd.pid"
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
###### virtual hosts
|
|
121
|
-
##
|
|
122
|
-
## If you want name-based virtual hosting add the next three settings and load
|
|
123
|
-
## mod_simple_vhost
|
|
124
|
-
##
|
|
125
|
-
## document-root =
|
|
126
|
-
## virtual-server-root + virtual-server-default-host + virtual-server-docroot or
|
|
127
|
-
## virtual-server-root + http-host + virtual-server-docroot
|
|
128
|
-
##
|
|
129
|
-
#simple-vhost.server-root = "/home/weigon/wwwroot/servers/"
|
|
130
|
-
#simple-vhost.default-host = "grisu.home.kneschke.de"
|
|
131
|
-
#simple-vhost.document-root = "/pages/"
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
##
|
|
135
|
-
## Format: <errorfile-prefix><status>.html
|
|
136
|
-
## -> ..../status-404.html for 'File not found'
|
|
137
|
-
#server.errorfile-prefix = "/home/weigon/projects/lighttpd/doc/status-"
|
|
138
|
-
|
|
139
|
-
## virtual directory listings
|
|
140
|
-
#server.dir-listing = "enable"
|
|
141
|
-
|
|
142
|
-
## send unhandled HTTP-header headers to error-log
|
|
143
|
-
#debug.dump-unknown-headers = "enable"
|
|
144
|
-
|
|
145
|
-
### only root can use these options
|
|
146
|
-
#
|
|
147
|
-
# chroot() to directory (default: no chroot() )
|
|
148
|
-
#server.chroot = "/"
|
|
149
|
-
|
|
150
|
-
## change uid to <uid> (default: don't care)
|
|
151
|
-
#server.username = "wwwrun"
|
|
152
|
-
|
|
153
|
-
## change uid to <uid> (default: don't care)
|
|
154
|
-
#server.groupname = "wwwrun"
|
|
155
|
-
|
|
156
|
-
#### compress module
|
|
157
|
-
#compress.cache-dir = "/tmp/lighttpd/cache/compress/"
|
|
158
|
-
#compress.filetype = ("text/plain", "text/html")
|
|
159
|
-
|
|
160
|
-
#### fastcgi module
|
|
161
|
-
## read fastcgi.txt for more info
|
|
162
|
-
fastcgi.server = ( ".rb" =>
|
|
163
|
-
( "localhost" =>
|
|
164
|
-
(
|
|
165
|
-
"socket" => "/tmp/nitro-fcgi.socket",
|
|
166
|
-
"bin-path" => "/home/gmosx/navel/nitro/examples/tiny/root/fcgi.rb"
|
|
167
|
-
)
|
|
168
|
-
)
|
|
169
|
-
)
|
|
170
|
-
|
|
171
|
-
#### CGI module
|
|
172
|
-
#cgi.assign = ( ".pl" => "/usr/bin/perl",
|
|
173
|
-
# ".cgi" => "/usr/bin/perl" )
|
|
174
|
-
#
|
|
175
|
-
|
|
176
|
-
#### SSL engine
|
|
177
|
-
#ssl.engine = "enable"
|
|
178
|
-
#ssl.pemfile = "server.pem"
|
|
179
|
-
|
|
180
|
-
#### status module
|
|
181
|
-
# status.status-url = "/server-status"
|
|
182
|
-
# status.config-url = "/server-config"
|
|
183
|
-
|
|
184
|
-
#### auth module
|
|
185
|
-
## read authentification.txt for more info
|
|
186
|
-
# auth.backend = "plain"
|
|
187
|
-
# auth.backend.plain.userfile = "lighttpd.user"
|
|
188
|
-
# auth.backend.plain.groupfile = "lighttpd.group"
|
|
189
|
-
|
|
190
|
-
# auth.backend.ldap.hostname = "localhost"
|
|
191
|
-
# auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
|
|
192
|
-
# auth.backend.ldap.filter = "(uid=$)"
|
|
193
|
-
|
|
194
|
-
# auth.require = ( "/server-status" =>
|
|
195
|
-
# (
|
|
196
|
-
# "method" => "digest",
|
|
197
|
-
# "realm" => "download archiv",
|
|
198
|
-
# "require" => "group=www|user=jan|host=192.168.2.10"
|
|
199
|
-
# ),
|
|
200
|
-
# "/server-info" =>
|
|
201
|
-
# (
|
|
202
|
-
# "method" => "digest",
|
|
203
|
-
# "realm" => "download archiv",
|
|
204
|
-
# "require" => "group=www|user=jan|host=192.168.2.10"
|
|
205
|
-
# )
|
|
206
|
-
# )
|
|
207
|
-
|
|
208
|
-
#### url handling modules (rewrite, redirect, access)
|
|
209
|
-
|
|
210
|
-
url.rewrite = (
|
|
211
|
-
"^/([\/\-_a-zA-Z0-9]+)?$" => "/fcgi.rb",
|
|
212
|
-
"^/([\/\-_a-zA-Z0-9]+)?\?([\-_a-zA-Z0-9=;&%]*)$" => "/fcgi.rb?$2"
|
|
213
|
-
)
|
|
214
|
-
|
|
215
|
-
# url.redirect = ( "^/wishlist/(.+)" => "http://www.123.org/$1" )
|
|
216
|
-
|
|
217
|
-
#
|
|
218
|
-
# define a pattern for the host url finding
|
|
219
|
-
# %% => % sign
|
|
220
|
-
# %0 => domain name + tld
|
|
221
|
-
# %1 => tld
|
|
222
|
-
# %2 => domain name without tld
|
|
223
|
-
# %3 => subdomain 1 name
|
|
224
|
-
# %4 => subdomain 2 name
|
|
225
|
-
#
|
|
226
|
-
# evhost.path-pattern = "/home/storage/dev/www/%3/htdocs/"
|
|
227
|
-
|
|
228
|
-
#### expire module
|
|
229
|
-
# expire.url = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")
|
|
230
|
-
|
|
231
|
-
#### ssi
|
|
232
|
-
# ssi.extension = ( ".shtml" )
|
|
233
|
-
|
|
234
|
-
#### rrdtool
|
|
235
|
-
# rrdtool.binary = "/usr/bin/rrdtool"
|
|
236
|
-
# rrdtool.db-name = "/var/www/lighttpd.rrd"
|
data/bin/proto/ctl
DELETED
data/bin/proto/lib/README
DELETED
data/bin/proto/log/README
DELETED