Lines Matching refs:to
24 mod_magnet is a module to control the request handling in lighty.
39 the module. Use "--with-lua=lua5.1" to install on Debian and friends. ::
51 It depends on the purpose of the script which stage you want to intercept. Usually you want to use
52 the 2nd stage where the physical-path which relates to your request is known. At this level you
57 magnet.attract-raw-url-to = ( ... )
58 magnet.attract-physical-path-to = ( ... )
71 Lighttpd has its internal variables which are exported as read/write to the magnet.
78 When you are using ``attract-raw-url-to`` you can access the following variables:
104 All of them are readable, not all of the are writable (or don't have an effect if you write to them…
106 As a start, you might want to use those variables for writing: ::
121 If you want to set a response header for your request, you can add a field to the lighty.header[] t…
128 You can generate your own content and send it out to the clients. ::
135 … when the script is finished. The elements of the array are processed left to right and the elemen…
147 Internally lighty will use the sendfile() call to send out the static files at full speed.
160 You every number above and equal to 100 is taken as final status code and finishes the request. No …
163 A special return-code is lighty.RESTART_REQUEST (currently equal to 99) which is usually used in co…
171 To easy debugging we overloaded the print()-function in lua and redirect the output of print() to t…
187 magnet.attract-physical-path-to = server.docroot + "/readme.lua"
199 Your side might be on maintenance from time to time. Instead of shutting down the server confusing …
204 magnet.attract-physical-path-to = server.docroot + "/maintenance.lua"
223 magnet.attract-physical-path-to = server.docroot + "/flv-streaming.lua"
250 Say, you want to send a random file (ad-content) from a directory.
252 To simplify the code and to improve the performance we define:
261 magnet.attract-physical-path-to = "random.lua"
281 Instead of implementing mod_security, you might just want to apply filters on the content
284 A common injection is using UNION to extend a query with another SELECT query.
295 If you only allow your virtual hosts a certain amount for traffic each month and want to
304 Just add the hosts you want to blacklist into the blacklist table in the shown way.
309 If you want to implement caching on your document-root and only want to regenerate
312 magnet.attract-physical-path-to = ( server.document-root + "/rewrite.lua" )
334 I had to compile lfs myself for lua-5.1 which required a minor patch as compat-5.1 is not needed::
345 SuSE and Gentoo are known to have their own lfs packages and don't require a compile.
350 ... or how to store data globally in the script-context:
353 and the special lighty.* name-space. If you want to save data between script runs, you can use the …
374 mod_status support a global statistics page and mod_magnet allows to add and update values in the s…
379 magnet.attract-raw-url-to = server.docroot + "/counter.lua"
413 content = { { filename = "/path/to/file1" }, { filename = "/path/to/file2"} }