summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-02-20 08:42:22 +0100
committerGravatar Christian Hesse <mail@eworm.de>2014-02-20 08:42:22 +0100
commit2c277dc0c5cb936a23ee58948854b2e3eb6dd251 (patch)
tree0df65f44583d66d2a1d40819bc6432edccdc3540 /config
parent2dd889294d577e484a431b7bce20aaae1731786f (diff)
downloadcqrlogo-2c277dc0c5cb936a23ee58948854b2e3eb6dd251.tar.gz
cqrlogo-2c277dc0c5cb936a23ee58948854b2e3eb6dd251.tar.zst
add and install configuration files for apache and lighttpd
Diffstat (limited to 'config')
-rw-r--r--config/apache.conf32
-rw-r--r--config/lighttpd.conf24
2 files changed, 56 insertions, 0 deletions
diff --git a/config/apache.conf b/config/apache.conf
new file mode 100644
index 0000000..61eff91
--- /dev/null
+++ b/config/apache.conf
@@ -0,0 +1,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>
diff --git a/config/lighttpd.conf b/config/lighttpd.conf
new file mode 100644
index 0000000..a697d8a
--- /dev/null
+++ b/config/lighttpd.conf
@@ -0,0 +1,24 @@
+# lighttpd configuration file for cqrlogo
+#
+# to enable cqrlogo in lighttpd just include this configuration in main
+# configuration with something like this:
+#
+# include "conf.d/cqrlogo.conf"
+
+server.modules += ( "mod_alias", "mod_fastcgi" )
+#server.modules += ( "mod_alias", "mod_cgi" )
+
+alias.url += ( "/cqrlogo" => "/usr/share/webapps/cqrlogo/cqrlogo.fcgi" )
+#alias.url += ( "/cqrlogo" => "/usr/share/webapps/cqrlogo/cqrlogo.fcgi" )
+
+fastcgi.server = (
+ ".fcgi" => (
+ "localhost" => (
+ "max-procs" => 1,
+ "socket" => "/run/lighttpd/cqrlogo-fastcgi.sock",
+ "bin-path" => "/usr/share/webapps/cqrlogo/cqrlogo.fcgi"
+ )
+ )
+)
+
+#cgi.assign = ( ".cgi" => "" )