summaryrefslogtreecommitdiff
blob: 1791c5a88f8efe8f7d6a37d997e061e44eb62e7d (plain)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# -----------------------------------------
# Config new for 32x
# -----------------------------------------

PerlSetEnv _SURVEY_ALLOWED_EXPORTS   "html,spss,sql,delim,fixed,xml,r"
PerlSetEnv _SURVEY_OPTIONAL_EXPORTS  "browse,desc,freq,gfreq"
PerlSetEnv _SURVEY_EXPORT_html       "Survey::Export::HtmlTables"
PerlSetEnv _SURVEY_EXPORT_spss       "Survey::Export::SPSS"
PerlSetEnv _SURVEY_EXPORT_xml        "Survey::Export::XML"
PerlSetEnv _SURVEY_EXPORT_sql        "Survey::Export::SQL"
PerlSetEnv _SURVEY_EXPORT_delim      "Survey::Export::DelimitedFields"
PerlSetEnv _SURVEY_EXPORT_fixed      "Survey::Export::FixedColumns"
PerlSetEnv _SURVEY_EXPORT_r          "Survey::Export::R"
PerlSetEnv _SURVEY_EXPORT_browse     "Survey::Export::CaseBrowser"
PerlSetEnv _SURVEY_EXPORT_desc       "Survey::Export::Descriptive"
PerlSetEnv _SURVEY_EXPORT_freq       "Survey::Export::Frequency"
PerlSetEnv _SURVEY_EXPORT_gfreq      "Survey::Export::GroupedFrequency"

# -----------------------------------------
# Mail settings
# -----------------------------------------

PerlSetEnv _SURVEY_SMTP_HOST         "127.0.0.1"
PerlSetEnv _SURVEY_MAIL_ADMIN        "root@localhost"

# -----------------------------------------
# Set global survey configuration variables
# -----------------------------------------

# Directory where caches, autodata files and keys should be stored
PerlSetEnv _SURVEY_SYSBASE           "/var/lib/mod_survey/"

# Whether parser is allowed to write and read cache at all (overrides
# ALLOWCACHE in survey docs if set to 0)
PerlSetEnv _SURVEY_PARSERCACHE       1

# Whether display module is allowed to write and read html output cache
# (overrides ALLOWCACHE in survey docs if set to 0)
PerlSetEnv _SURVEY_DISPLAYCACHE      1

# Where mod_survey is installed
PerlSetEnv _SURVEY_HOME              "/usr/lib/mod_survey/"

# Where mod_survey web root is
PerlSetEnv _SURVEY_ROOT              "/var/www/mod_survey/"

# Which root alias to use for doc links and similar
PerlSetEnv _SURVEY_ROOT_ALIAS        "/mod_survey/"

# Whether we have installed on a sensible (unixoid) system
PerlSetEnv _SURVEY_SENSIBLE          1

# -------------------------
# Security related settings
# -------------------------

# If you plan to use DBI tables, you must install DBI 1.13 or later and
# set the below to 1. Even if you have DBI installed, you may want to
# choose to not enable it in Mod_Survey for security reasons.
PerlSetEnv _SURVEY_USEDBI            1

# Whether is is allowed to let system automatically handle data submission
# It would a stupid idea to change this unless you know what you are doing.
PerlSetEnv _SURVEY_ALLOWAUTO         1

# Whether submit should protest at illegal characters and ask the user
# to go back and correct these. This will be ignored if _SURVEY_USENEWAUTo
PerlSetEnv _SURVEY_PROTESTILLEGAL    1

# Whether to use safe delimiters in the AutoData file. This makes things
# safer, but also makes the AutoData file partially binary. Most users
# want to enable this.
PerlSetEnv _SURVEY_USENEWAUTO        1

# -------------------------------------
# Internationalization related settings
# -------------------------------------

# Where to find language files
PerlSetEnv _SURVEY_LANG_DIRECTORY    "/usr/lib/mod_survey/Lang/"

# Which language to use
PerlSetEnv _SURVEY_LANG              "en"

# ---------------------------------------------------
# Startup check and addition of survey folder to @INC
# ---------------------------------------------------

PerlRequire "/usr/lib/mod_survey/startup.pl"

# --------------------------------------------------------------------
# Add type for survey files. If you change this, please change pattern
# for the files tag below too
# --------------------------------------------------------------------

AddType text/html .survey

# ---------------------------------------------------------------
# Match all files containing ".survey" (tail "*" is necessary for
# admin part). Enclosure in Directory necessary to avoid clash with
# mod_proxy.
# ---------------------------------------------------------------

<Directory "/">
	<Files *.survey*>
		SetHandler perl-script
		PerlHandler Survey::Handler
		PerlSendHeader "Off"
		AuthType Basic
		AuthName Mod_Survey
		PerlAuthenHandler Apache::AuthAny
	</Files>
</Directory>

# vim: ts=4 filetype=apache