]> git.pld-linux.org Git - packages/eventum.git/blobdiff - eventum-apache.conf
up to 3.4.1-16-geb297cf4
[packages/eventum.git] / eventum-apache.conf
index 6103adf595b9b5e5c9ab4e96cf08af7270f8f31b..63dcb7c27abeff8d7be75fe1a822c03fa1522950 100644 (file)
@@ -1,38 +1,80 @@
-# vim:syn=apache
-
+# Eventum is under /eventum
 Alias /eventum /usr/share/eventum/htdocs
 
-# allow from localhost
-<Location /eventum>
+# Eventum is running under VirtualHost
+#NameVirtualHost *:80
+#<VirtualHost *:80>
+#      ServerName eventum.example.org
+#      DocumentRoot /usr/share/eventum/htdocs
+#</VirtualHost>
+#NameVirtualHost *:443
+#<VirtualHost *:443>
+#      ServerName eventum.example.org
+#      DocumentRoot /usr/share/eventum/htdocs
+#</VirtualHost>
+
+<Directory /usr/share/eventum/htdocs>
        AllowOverride None
-       Order allow,deny
-       Allow from 127.0.0.1
-</Location>
+       # Apache < 2.4
+       <IfModule !mod_authz_core.c>
+               Order allow,deny
+               Allow from all
+       </IfModule>
+       # Apache 2.4
+       <IfModule mod_authz_core.c>
+               Require all granted
+       </IfModule>
 
-# or perhaps you want it to be password protected
-#<Location /eventum>
+       # Make whole eventum password protected
 #      AllowOverride None
 #      Deny from all
 #      AuthType Basic
-#      AuthUserFile /etc/eventum/users
-#      AuthGroupFile /etc/eventum/groups
+#      AuthUserFile /etc/webapps/eventum/users
+#      AuthGroupFile /etc/webapps/eventum/groups
 #      AuthName "Eventum"
 #      Require group eventum
 #      Satisfy any
-#</Location>
 
-# for scm integration
-#<Location /eventum/scm_ping.php>
-#      AllowOverride None
-#      Order allow,deny
-#      # Set here IP of host running CVS
-#      Allow from 127.0.0.1
-#</Location>
+       # for SCM integration
+       <Files scm_ping.php>
+               # Apache < 2.4
+               <IfModule !mod_authz_core.c>
+                       Order allow,deny
+                       Allow from 127.0.0.1
+               </IfModule>
+               # Apache 2.4
+               <IfModule mod_authz_core.c>
+                       # SCM integration. Set here IP of host running CVS, SVN, Git
+                       Require local
+#                      Require ip xxx.xxx.xxx.xxx
+               </IfModule>
+       </Files>
 
-# cli interface
-#<Location /eventum/rpc>
-#      AllowOverride None
-#      Order allow,deny
-#      # Add here clients whom you want to allow CLI access
-#      Allow from 127.0.0.1
-#</Location>
+       # rss has it's own authorization
+       <Files rss.php>
+               # Apache < 2.4
+               <IfModule !mod_authz_core.c>
+                       Order allow,deny
+                       Allow from all
+               </IfModule>
+               # Apache 2.4
+               <IfModule mod_authz_core.c>
+                       Require all granted
+               </IfModule>
+       </Files>
+</Directory>
+
+# RPC for CLI interface
+<Directory /usr/share/eventum/htdocs/rpc>
+       # Add here clients whom you want to allow CLI access
+       # Apache < 2.4
+       <IfModule !mod_authz_core.c>
+               Order allow,deny
+               Allow from 127.0.0.1
+       </IfModule>
+       # Apache 2.4
+       <IfModule mod_authz_core.c>
+               Require local
+#              Require ip xxx.xxx.xxx.xxx
+       </IfModule>
+</Directory>
This page took 0.078006 seconds and 4 git commands to generate.