]> git.pld-linux.org Git - packages/viewvc.git/commitdiff
apache conf compatible with apache 1.3-2.4
authorElan Ruusamäe <glen@delfi.ee>
Wed, 13 May 2015 19:46:15 +0000 (22:46 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 13 May 2015 19:46:15 +0000 (22:46 +0300)
apache.conf [new file with mode: 0644]
viewvc-httpd.conf [deleted file]
viewvc.spec

diff --git a/apache.conf b/apache.conf
new file mode 100644 (file)
index 0000000..f4da2c9
--- /dev/null
@@ -0,0 +1,59 @@
+<Directory /usr/share/viewvc>
+       AllowOverride None
+       Options +FollowSymlinks
+
+       # Apache 1.3, 2.x
+       <IfModule !mod_authz_core.c>
+               Order allow,deny
+               Allow from all
+       </IfModule>
+       # Apache 2.4
+       <IfModule mod_authz_core.c>
+               Require all granted
+       </IfModule>
+</Directory>
+
+# Version1 (default): under /cgi-bin/viewvc.cgi address
+ScriptAlias /cgi-bin/viewvc.cgi /usr/share/viewvc/bin/cgi/viewvc.cgi
+ScriptAlias /cgi-bin/viewvc-query.cgi /usr/share/viewvc/bin/cgi/query.cgi
+
+# if using apache2 mod_python:
+# Alias /viewvc        /usr/share/viewvc/bin/mod_python
+# <Location /viewvc>
+#      # Apache 1.3, 2.x
+#      <IfModule !mod_authz_core.c>
+#              Order allow,deny
+#              Allow from all
+#      </IfModule>
+#      # Apache 2.4
+#      <IfModule mod_authz_core.c>
+#              Require all granted
+#      </IfModule>
+#      <IfModule mod_python.c>
+#              AddHandler mod_python .py
+#              PythonPath "sys.path+['/usr/share/viewvc/bin/mod_python']"
+#              PythonHandler handler
+#              PythonDebug Off
+#      </IfModule>
+# </Location>
+
+# Version 2: viewvc as handler to whole vhost:
+#<VirtualHost *:80>
+#      ServerName cvs
+#
+#      Alias /viewvc/ /usr/share/viewvc
+#      DocumentRoot /usr/share/viewvc/bin/cgi/viewvc.cgi
+#      <Location />
+#              Options ExecCGI
+#              # Apache 1.3, 2.x
+#              <IfModule !mod_authz_core.c>
+#                      Order allow,deny
+#                      Allow from all
+#              </IfModule>
+#              # Apache 2.4
+#              <IfModule mod_authz_core.c>
+#                      Require all granted
+#              </IfModule>
+#      </Location>
+#</VirtualHost>
+
diff --git a/viewvc-httpd.conf b/viewvc-httpd.conf
deleted file mode 100644 (file)
index 7e3de1a..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-<Directory /usr/share/viewvc>
-    AllowOverride None
-    Options +FollowSymlinks
-    Allow from all
-</Directory>
-
-# Version1 (default): under /cgi-bin/viewvc.cgi address
-ScriptAlias /cgi-bin/viewvc.cgi /usr/share/viewvc/bin/cgi/viewvc.cgi
-ScriptAlias /cgi-bin/viewvc-query.cgi /usr/share/viewvc/bin/cgi/query.cgi
-
-# if using apache2 mod_python:
-# Alias /viewvc        /usr/share/viewvc/bin/mod_python
-# <Location /viewvc>
-#    Allow from all
-#      <IfModule mod_python.c>
-#              AddHandler mod_python .py
-#              PythonPath "sys.path+['/usr/share/viewvc/bin/mod_python']"
-#              PythonHandler handler
-#              PythonDebug Off
-#      </IfModule>
-# </Location>
-
-# Version 2: viewvc as handler to whole vhost:
-#<VirtualHost *:80>
-#   ServerName cvs
-#
-#   Alias /viewvc/ /usr/share/viewvc
-#   DocumentRoot /usr/share/viewvc/bin/cgi/viewvc.cgi
-#   <Location />
-#       Options ExecCGI
-#       Allow from all
-#   </Location>
-#</VirtualHost>
-
index 2f52105575081dce81a82bfe24f52d97ef7e9f9b..e57f474bb246cce8d7e0f54cee1ddbe5b69b7e80 100644 (file)
@@ -10,7 +10,7 @@ License:      BSD
 Group:         Applications/WWW
 Source0:       http://www.viewvc.org/%{name}-%{version}.tar.gz
 # Source0-md5: 13292307114b0f4bb4fc322597ec8007
-Source1:       %{name}-httpd.conf
+Source1:       apache.conf
 URL:           http://www.viewvc.org/
 BuildRequires: python
 BuildRequires: python-modules
@@ -166,8 +166,8 @@ ViewVC - szablon viewsvn
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_webapps}/%{_webapp},%{_appdir},%{_sysconfdir}}
 
-cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/apache.conf
-cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/httpd.conf
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/apache.conf
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/httpd.conf
 #install lighttpd.conf $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/lighttpd.conf
 
 ./viewvc-install --destdir=$RPM_BUILD_ROOT --prefix=%{_appdir}
This page took 0.102863 seconds and 4 git commands to generate.