View | Details | Raw Unified | Return to bug 42196
Collapse All | Expand All

(-)a/branches/ucs-4.2/ucs-4.2-0/services/univention-apache/debian/changelog (+6 lines)
 Lines 1-3    Link Here 
1
univention-apache (9.0.1-1) unstable; urgency=low
2
3
  * Bug #42196: Fix default configuration
4
5
 -- Philipp Hahn <hahn@univention.de>  Thu, 08 Sep 2016 10:10:19 +0200
6
1
univention-apache (9.0.0-4) unstable; urgency=low
7
univention-apache (9.0.0-4) unstable; urgency=low
2
8
3
  * Bug #42196: apache config upgrade
9
  * Bug #42196: apache config upgrade
(-)a/branches/ucs-4.2/ucs-4.2-0/services/univention-apache/debian/univention-apache.postinst (-7 / +3 lines)
 Lines 34-40    Link Here 
34
34
35
# update to 4.2-0
35
# update to 4.2-0
36
dpkg-maintscript-helper rm_conffile /etc/univention/templates/files/etc/apache2/conf.d/ucs.conf -- $@
36
dpkg-maintscript-helper rm_conffile /etc/univention/templates/files/etc/apache2/conf.d/ucs.conf -- $@
37
if dpkg --compare-versions "$2" lt-nl 9.0.0-1; then
37
if dpkg --compare-versions "$2" lt-nl 9.0.0; then
38
	ucr update
38
	ucr update
39
	a2dismod auth_pam
39
	a2dismod auth_pam
40
fi
40
fi
 Lines 102-110   fi Link Here 
102
102
103
if [ -x /etc/init.d/apache2 ]; then
103
if [ -x /etc/init.d/apache2 ]; then
104
	# better stop&start, as this behaves differently to restart
104
	# better stop&start, as this behaves differently to restart
105
	/etc/init.d/apache2 stop
105
	invoke-rc.d apache2 stop
106
	sleep 3
106
	sleep 3
107
	/etc/init.d/apache2 start
107
	invoke-rc.d apache2 start
108
fi
108
fi
109
109
110
ucr set "ucs/server/languages/en_US?English" \
110
ucr set "ucs/server/languages/en_US?English" \
 Lines 113-118   ucr set "ucs/server/languages/en_US?English" \ Link Here 
113
	"ucs/server/languages/de_AT?Deutsch (Österreich)" \
113
	"ucs/server/languages/de_AT?Deutsch (Österreich)" \
114
	"ucs/server/languages/de_CH?Deutsch (Schweiz)" 
114
	"ucs/server/languages/de_CH?Deutsch (Schweiz)" 
115
115
116
117
exit 0
116
exit 0
118
119
- 
120
--
121
.../debian/univention-apache.maintscript           |  1 +
117
.../debian/univention-apache.maintscript           |  1 +
122
.../debian/univention-apache.postinst              |  1 -
118
.../debian/univention-apache.postinst              |  1 -
123
.../debian/univention-apache.postrm                |  2 --
119
.../debian/univention-apache.postrm                |  2 --
124
.../debian/univention-apache.preinst               | 37 ----------------------
120
.../debian/univention-apache.preinst               | 37 ----------------------
125
4 files changed, 1 insertion(+), 40 deletions(-)
121
4 files changed, 1 insertion(+), 40 deletions(-)
126
create mode 100644 branches/ucs-4.2/ucs-4.2-0/services/univention-apache/debian/univention-apache.maintscript
122
create mode 100644 branches/ucs-4.2/ucs-4.2-0/services/univention-apache/debian/univention-apache.maintscript
127
delete mode 100644 branches/ucs-4.2/ucs-4.2-0/services/univention-apache/debian/univention-apache.preinst
123
delete mode 100644 branches/ucs-4.2/ucs-4.2-0/services/univention-apache/debian/univention-apache.preinst
(-)a/branches/ucs-4.2/ucs-4.2-0/services/univention-apache/debian/univention-apache.maintscript (+1 lines)
Line 0    Link Here 
1
mv_conffile /etc/univention/templates/files/etc/apache2/conf.d/ucs.conf /etc/univention/templates/files/etc/apache2/conf-available/ucs.conf 9.0.1~
(-)a/branches/ucs-4.2/ucs-4.2-0/services/univention-apache/debian/univention-apache.postinst (-1 lines)
 Lines 33-39    Link Here 
33
#DEBHELPER#
33
#DEBHELPER#
34
34
35
# update to 4.2-0
35
# update to 4.2-0
36
dpkg-maintscript-helper rm_conffile /etc/univention/templates/files/etc/apache2/conf.d/ucs.conf -- $@
37
if dpkg --compare-versions "$2" lt-nl 9.0.0; then
36
if dpkg --compare-versions "$2" lt-nl 9.0.0; then
38
	ucr update
37
	ucr update
39
	a2dismod auth_pam
38
	a2dismod auth_pam
(-)a/branches/ucs-4.2/ucs-4.2-0/services/univention-apache/debian/univention-apache.postrm (-2 lines)
 Lines 30-37    Link Here 
30
# /usr/share/common-licenses/AGPL-3; if not, see
30
# /usr/share/common-licenses/AGPL-3; if not, see
31
# <http://www.gnu.org/licenses/>.
31
# <http://www.gnu.org/licenses/>.
32
32
33
dpkg-maintscript-helper rm_conffile /etc/univention/templates/files/etc/apache2/conf.d/ucs.conf -- $@
34
35
if [ "$1" = "purge" ]; then
33
if [ "$1" = "purge" ]; then
36
	rm -rf /etc/univention/apache
34
	rm -rf /etc/univention/apache
37
fi
35
fi
(-)a/branches/ucs-4.2/ucs-4.2-0/services/univention-apache/debian/univention-apache.preinst (-39 lines)
 Lines 1-37    Link Here 
1
#!/bin/sh
2
#
3
# Univention Apache
4
#  preinst script for the debian package
5
#
6
# Copyright 2016 Univention GmbH
7
#
8
# http://www.univention.de/
9
#
10
# All rights reserved.
11
#
12
# The source code of this program is made available
13
# under the terms of the GNU Affero General Public License version 3
14
# (GNU AGPL V3) as published by the Free Software Foundation.
15
#
16
# Binary versions of this program provided by Univention to you as
17
# well as other copyrighted, protected or trademarked materials like
18
# Logos, graphics, fonts, specific documentations and configurations,
19
# cryptographic keys etc. are subject to a license agreement between
20
# you and Univention and not subject to the GNU AGPL V3.
21
#
22
# In the case you use this program under the terms of the GNU AGPL V3,
23
# the program is provided in the hope that it will be useful,
24
# but WITHOUT ANY WARRANTY; without even the implied warranty of
25
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26
# GNU Affero General Public License for more details.
27
#
28
# You should have received a copy of the GNU Affero General Public
29
# License with the Debian GNU/Linux or Univention distribution in file
30
# /usr/share/common-licenses/AGPL-3; if not, see
31
# <http://www.gnu.org/licenses/>.
32
33
#DEBHELPER#
34
35
dpkg-maintscript-helper rm_conffile /etc/univention/templates/files/etc/apache2/conf.d/ucs.conf -- $@
36
37
exit 0
38
- 
39
--
40
.../univention-apache/conffiles/etc/apache2/conf-available/ucs.conf  | 5 -----
0
.../univention-apache/conffiles/etc/apache2/conf-available/ucs.conf  | 5 -----
41
1 file changed, 5 deletions(-)
1
1 file changed, 5 deletions(-)
(-)a/branches/ucs-4.2/ucs-4.2-0/services/univention-apache/conffiles/etc/apache2/conf-available/ucs.conf (-7 lines)
 Lines 10-20   ErrorLog /var/log/apache2/error.log Link Here 
10
# alert, emerg.
10
# alert, emerg.
11
LogLevel @%@apache2/loglevel@%@
11
LogLevel @%@apache2/loglevel@%@
12
12
13
<Directory />
14
	Options +FollowSymLinks
15
	AllowOverride None
16
</Directory>
17
18
<Directory "/usr/lib/cgi-bin">
13
<Directory "/usr/lib/cgi-bin">
19
	AllowOverride None
14
	AllowOverride None
20
	Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
15
	Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
21
- 
22
--
23
.../univention-apache/conffiles/etc/apache2/conf-available/ucs.conf     | 2 --
16
.../univention-apache/conffiles/etc/apache2/conf-available/ucs.conf     | 2 --
24
.../conffiles/etc/apache2/ucs-sites.conf.d/ucs-sites.conf               | 1 +
17
.../conffiles/etc/apache2/ucs-sites.conf.d/ucs-sites.conf               | 1 +
25
2 files changed, 1 insertion(+), 2 deletions(-)
18
2 files changed, 1 insertion(+), 2 deletions(-)
(-)a/branches/ucs-4.2/ucs-4.2-0/services/univention-apache/conffiles/etc/apache2/conf-available/ucs.conf (-2 lines)
 Lines 4-11   MaxClients @%@apache2/maxclients@%@ Link Here 
4
ServerAdmin webmaster@@%@hostname@%@.@%@domainname@%@
4
ServerAdmin webmaster@@%@hostname@%@.@%@domainname@%@
5
ServerSignature On
5
ServerSignature On
6
6
7
CustomLog /var/log/apache2/access.log combined
8
ErrorLog /var/log/apache2/error.log
9
# Possible values include: debug, info, notice, warn, error, crit,
7
# Possible values include: debug, info, notice, warn, error, crit,
10
# alert, emerg.
8
# alert, emerg.
11
LogLevel @%@apache2/loglevel@%@
9
LogLevel @%@apache2/loglevel@%@
(-)a/branches/ucs-4.2/ucs-4.2-0/services/univention-apache/conffiles/etc/apache2/ucs-sites.conf.d/ucs-sites.conf (-2 / +1 lines)
 Lines 6-11   ProxyPreserveHost on Link Here 
6
ProxyTimeout 600
6
ProxyTimeout 600
7
7
8
DocumentRoot @%@apache2/documentroot@%@
8
DocumentRoot @%@apache2/documentroot@%@
9
CustomLog /var/log/apache2/access.log combined
9
@!@
10
@!@
10
print 'RedirectMatch ^/$ /%s' % baseConfig.get('apache2/startsite', 'ucs-overview')
11
print 'RedirectMatch ^/$ /%s' % baseConfig.get('apache2/startsite', 'ucs-overview')
11
@!@
12
@!@
12
- 
13
--
14
.../conffiles/etc/apache2/conf-available/ucs.conf                  | 7 -------
13
.../conffiles/etc/apache2/conf-available/ucs.conf                  | 7 -------
15
.../conffiles/etc/apache2/ucs-sites.conf.d/ucs-sites.conf          | 2 --
14
.../conffiles/etc/apache2/ucs-sites.conf.d/ucs-sites.conf          | 2 --
16
2 files changed, 9 deletions(-)
15
2 files changed, 9 deletions(-)
(-)a/branches/ucs-4.2/ucs-4.2-0/services/univention-apache/conffiles/etc/apache2/conf-available/ucs.conf (-7 lines)
 Lines 8-20   ServerSignature On Link Here 
8
# alert, emerg.
8
# alert, emerg.
9
LogLevel @%@apache2/loglevel@%@
9
LogLevel @%@apache2/loglevel@%@
10
10
11
<Directory "/usr/lib/cgi-bin">
12
	AllowOverride None
13
	Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
14
	Order allow,deny
15
	Allow from all
16
</Directory>
17
18
<Directory /var/www/>
11
<Directory /var/www/>
19
	Options +Indexes +FollowSymLinks +MultiViews
12
	Options +Indexes +FollowSymLinks +MultiViews
20
	@!@
13
	@!@
(-)a/branches/ucs-4.2/ucs-4.2-0/services/univention-apache/conffiles/etc/apache2/ucs-sites.conf.d/ucs-sites.conf (-4 lines)
 Lines 1-5    Link Here 
1
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
2
3
RewriteEngine on
1
RewriteEngine on
4
RewriteOptions Inherit
2
RewriteOptions Inherit
5
ProxyPreserveHost on
3
ProxyPreserveHost on
6
- 
7
--
8
.../etc/apache2/sites-available/000-default.d/00start          |  5 +++++
4
.../etc/apache2/sites-available/000-default.d/00start          |  5 +++++
9
.../conffiles/etc/apache2/sites-available/000-default.d/99end  |  1 +
5
.../conffiles/etc/apache2/sites-available/000-default.d/99end  |  1 +
10
.../conffiles/etc/apache2/sites-available/default.d/00start    |  5 -----
6
.../conffiles/etc/apache2/sites-available/default.d/00start    |  5 -----
11
.../conffiles/etc/apache2/sites-available/default.d/99end      |  1 -
7
.../conffiles/etc/apache2/sites-available/default.d/99end      |  1 -
12
.../univention-apache/debian/univention-apache.maintscript     |  2 ++
8
.../univention-apache/debian/univention-apache.maintscript     |  2 ++
13
.../debian/univention-apache.univention-config-registry        | 10 +++++-----
9
.../debian/univention-apache.univention-config-registry        | 10 +++++-----
14
6 files changed, 13 insertions(+), 11 deletions(-)
10
6 files changed, 13 insertions(+), 11 deletions(-)
15
create mode 100644 branches/ucs-4.2/ucs-4.2-0/services/univention-apache/conffiles/etc/apache2/sites-available/000-default.d/00start
11
create mode 100644 branches/ucs-4.2/ucs-4.2-0/services/univention-apache/conffiles/etc/apache2/sites-available/000-default.d/00start
16
create mode 100644 branches/ucs-4.2/ucs-4.2-0/services/univention-apache/conffiles/etc/apache2/sites-available/000-default.d/99end
12
create mode 100644 branches/ucs-4.2/ucs-4.2-0/services/univention-apache/conffiles/etc/apache2/sites-available/000-default.d/99end
17
delete mode 100644 branches/ucs-4.2/ucs-4.2-0/services/univention-apache/conffiles/etc/apache2/sites-available/default.d/00start
13
delete mode 100644 branches/ucs-4.2/ucs-4.2-0/services/univention-apache/conffiles/etc/apache2/sites-available/default.d/00start
18
delete mode 100644 branches/ucs-4.2/ucs-4.2-0/services/univention-apache/conffiles/etc/apache2/sites-available/default.d/99end
14
delete mode 100644 branches/ucs-4.2/ucs-4.2-0/services/univention-apache/conffiles/etc/apache2/sites-available/default.d/99end
(-)a/branches/ucs-4.2/ucs-4.2-0/services/univention-apache/conffiles/etc/apache2/sites-available/000-default.d/00start (+5 lines)
Line 0    Link Here 
1
@%@UCRWARNING=# @%@
2
3
<VirtualHost *:80>
4
	Include /etc/apache2/ucs-sites.conf.d
5
(-)a/branches/ucs-4.2/ucs-4.2-0/services/univention-apache/conffiles/etc/apache2/sites-available/000-default.d/99end (+1 lines)
Line 0    Link Here 
1
</VirtualHost>
(-)a/branches/ucs-4.2/ucs-4.2-0/services/univention-apache/conffiles/etc/apache2/sites-available/default.d/00start (-5 lines)
 Lines 1-5    Link Here 
1
@%@UCRWARNING=# @%@
2
3
<VirtualHost *:80>
4
	Include /etc/apache2/ucs-sites.conf.d
5
(-)a/branches/ucs-4.2/ucs-4.2-0/services/univention-apache/conffiles/etc/apache2/sites-available/default.d/99end (-1 lines)
Line 1    Link Here 
1
</VirtualHost>
(-)a/branches/ucs-4.2/ucs-4.2-0/services/univention-apache/debian/univention-apache.maintscript (+2 lines)
Line 1    Link Here 
1
mv_conffile /etc/univention/templates/files/etc/apache2/conf.d/ucs.conf /etc/univention/templates/files/etc/apache2/conf-available/ucs.conf 9.0.1~
1
mv_conffile /etc/univention/templates/files/etc/apache2/conf.d/ucs.conf /etc/univention/templates/files/etc/apache2/conf-available/ucs.conf 9.0.1~
2
mv_conffile /etc/apache2/sites-available/default.d/00start /etc/apache2/sites-available/000-default.d/00start 9.0.1~
3
mv_conffile /etc/apache2/sites-available/default.d/99end /etc/apache2/sites-available/000-default.d/99end 9.0.1~
(-)a/branches/ucs-4.2/ucs-4.2-0/services/univention-apache/debian/univention-apache.univention-config-registry (-6 / +5 lines)
 Lines 12-26   Variables: apache2/startsite Link Here 
12
Variables: apache2/documentroot
12
Variables: apache2/documentroot
13
13
14
Type: multifile
14
Type: multifile
15
Multifile: etc/apache2/sites-available/default.conf
15
Multifile: etc/apache2/sites-available/000-default.conf
16
16
17
Type: subfile
17
Type: subfile
18
Multifile: etc/apache2/sites-available/default.conf
18
Multifile: etc/apache2/sites-available/000-default.conf
19
Subfile: etc/apache2/sites-available/default.d/00start
19
Subfile: etc/apache2/sites-available/000-default.d/00start
20
20
21
Type: subfile
21
Type: subfile
22
Multifile: etc/apache2/sites-available/default.conf
22
Multifile: etc/apache2/sites-available/000-default.conf
23
Subfile: etc/apache2/sites-available/default.d/99end
23
Subfile: etc/apache2/sites-available/000-default.d/99end
24
24
25
Type: file
25
Type: file
26
File: etc/apache2/mods-available/ssl.conf
26
File: etc/apache2/mods-available/ssl.conf
27
- 

Return to bug 42196