aboutsummaryrefslogtreecommitdiffstats
path: root/config/apache.conf
blob: 61eff9180ffb015a9a423f2e6102a80ec4979621 (about) (plain) (blame)
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
# Apache configuration file for cqrlogo
#
# to enable cqrlogo in apache just make sure modules mod_alias and either
# of mod_fastcgi and mod_fcgid are loaded

<IfModule alias_module>
	# try fastcgi first
	<IfModule fastcgi_module>
		AddHandler fastcgi-script fcgi
		ScriptAlias /cqrlogo "/usr/share/webapps/cqrlogo/cqrlogo.fcgi"
	</IfModule>

	# then use fcgid
	<IfModule !fastcgi_module>
		<IfModule fcgid_module>
			AddHandler fcgid-script fcgi
			ScriptAlias /cqrlogo "/usr/share/webapps/cqrlogo/cqrlogo.fcgi"
		</IfModule>
	</IfModule>

	# and fall back to simple CGI if fastcgi modules above fail
	<IfModule !fastcgi_module>
		<IfModule !fcgid_module>
			ScriptAlias /cqrlogo "/usr/share/webapps/cqrlogo/cqrlogo.cgi"
		</IfModule>
	</IfModule>

	<Directory /usr/share/webapps/cqrlogo/>
		Options ExecCGI
		Allow from all
	</Directory>
</IfModule>