File: README

package info (click to toggle)
libapache-mod-random 1.4-5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 92 kB
  • ctags: 59
  • sloc: ansic: 318; makefile: 89; sh: 87
file content (30 lines) | stat: -rw-r--r-- 941 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
So what is this? 
Mod_random has three basic functions. It can supply
a random URL which can be usd to redirect to
random sites, it can also supply text via
environmental variable, and finally it can
display entire pages via its built in handlers. 
Read the faq for more examples and information.

An example config for your httpd.conf
file to use the random URL would look like this:
<Location /geekythings>
	SetHandler random
	RandomURL http://www.slashdot.org/
	RandomURL http://www.tangent.org/
	RandomURL http://www.freshmeat.net/
	RandomURL http://www.linux.org/
	RandomFile /usr/local/apache/conf/random.conf
</Location>

For using the random quote feature you would
do the following:
<VirtualHost www.sample.com>
	RandomEngine On
	RandomQuoteFile /usr/local/apache/conf/randomquotes.txt
	RandomQuoteTXT "<P>Three blind mice give this site a raiting of two.</P>"
</virtualhost>

	-Brian Aker
	Seattle, Washington
	<brian@tangent.org>