~~~~~~~~~~
Ovaj paket donosi CARNetovu dodatnu konfiguraciju za apache2 paket
-iz Debian squeeze distribucije.
+iz Debian wheezy distribucije.
Paket dodaje VirtualHost zapise za slijedece webove:
* suexec
* CGI
-
- -- Dragan Dosen <Dragan.Dosen@CARNet.hr> Sat, 30 Apr 2011 12:48:12 +0200
+ -- Dragan Dosen <Dragan.Dosen@CARNet.hr> Tue, 13 Aug 2013 10:20:06 +0200
+apache2-cn (2.2.22+1) stable; urgency=low
+
+ * Prva inacica paketa za Debian wheezy distribuciju.
+ * Azurirane datoteke debian/README.CARNet, debian/copyright,
+ debian/compat i ovisnosti unutar debian/control.
+ * Azurirani predlosci, datoteke templates/default.template i
+ templates/ssl.template.
+ * Uklonjena datoteka debian/source.lintian-overrides.
+ * debian/postrm - dodan debhelper token, dodatne izmjene.
+ * Dodana datoteka debian/source/format.
+
+ -- Dragan Dosen <Dragan.Dosen@CARNet.hr> Tue, 13 Aug 2013 10:30:49 +0200
+
apache2-cn (2.2+3) stable; urgency=low
* Uklonjen debhelper token iz debian/postrm uz dodatne manje izmjene.
Section: httpd
Priority: optional
Maintainer: Dragan Dosen <Dragan.Dosen@CARNet.hr>
-Build-Depends: debhelper (>= 7), po-debconf
-Standards-Version: 3.9.1
+Build-Depends: debhelper (>= 8.0.0), po-debconf
+Standards-Version: 3.9.3
Package: apache2-cn
Architecture: all
-Depends: apache2-mpm-prefork (>= 2.2.16-6+squeeze1), apache2 (>= 2.2.16-6+squeeze1), apache2-suexec (>= 2.2.16-6+squeeze1), apache2 (<< 2.3), php5-cn (>= 5.3.3+1), carnet-tools-cn (>= 3.0.0), ssl-cert, procps, debconf (>= 0.5) | debconf-2.0, postfix | mail-transport-agent, ${misc:Depends}
+Depends: apache2-mpm-prefork (>= 2.2.22-13), apache2 (>= 2.2.22-13), apache2-suexec (>= 2.2.22-13), apache2 (<< 2.3), php5-cn (>= 5.3.3+1), carnet-tools-cn (>= 3.0.4), ssl-cert, procps, debconf (>= 0.5) | debconf-2.0, postfix | mail-transport-agent, ${misc:Depends}
Suggests: mod-security-cn, apache2-doc, ca-certificates, monit-cn
Description: Apache HTTP Server - traditional non-threaded model
Each Apache Multi-Processing Module provides a different "flavor" of
web server binary, compiled with a different processing model.
.
- The prefork MPM provides a non-threaded, pre-forking implementation
- that handles requests in a manner similar to Apache 1.3. It is not as
- fast as threaded models, but is considered to be more stable. It is
- appropriate for sites that need to maintain compatibility with
- non-thread-safe libraries, and is the best MPM for isolating each
- request, so that a problem with a single request will not affect any
- other.
+ The prefork MPM provides a non-threaded implementation using a variable
+ number of processes where each process handles only one connection
+ at the same time. It is not as fast as threaded models, but is considered to
+ be more stable. It is appropriate for sites that need to maintain
+ compatibility with non-thread-safe libraries, and is the best MPM for
+ isolating each request, so that a problem with a single request will not
+ affect any other.
.
- This dummy package provided by CARNet configures a simple https enabled
+ This is a CARNet Debian package which configures a simple https enabled
web service with PHP5.
Homepage: http://httpd.apache.org/
-Copyright 2011 CARNet
+Copyright 2013 CARNet
You are free to distribute this software package under the terms of the
GNU General Public License.
case "$1" in
purge)
- # Get CARNet config files in /etc/apache2/sites-available directory.
- if [ -d "${sitesdir}" ] && [ -n "$(ls ${sitesdir}/)" ]; then
+ # continue below
+ ;;
+ *)
+ exit 0
+ ;;
+esac
- for file in ${sitesdir}/*; do
- if [ -f "$file" ]; then
- if egrep -q "^## Begin - Generated by CARNet package apache2-cn$" $file; then
- site=`echo "$file" | sed 's/^\/.*\///'`
- sitefiles="$sitefiles $site"
- fi
- fi
- done
+# Get CARNet config files in /etc/apache2/sites-available directory.
+if [ -d "${sitesdir}" ] && [ -n "$(ls ${sitesdir}/)" ]; then
+ for file in ${sitesdir}/*; do
+ if [ -f "$file" ]; then
+ if egrep -q "^## Begin - Generated by CARNet package apache2-cn$" $file; then
+ site=`echo "$file" | sed 's/^\/.*\///'`
+ sitefiles="$sitefiles $site"
+ fi
fi
-
- # Remove our vhosts.
- if [ -n "$sitefiles" ]; then
- for site in $sitefiles; do
-
- if [ -e "$sitesdir/$site" ]; then
-
- cp_echo "CN: Removing $site site configuration file."
- rm -f $sitesdir/$site
- fi
- done
+ done
+fi
+
+# Remove our vhosts.
+if [ -n "$sitefiles" ]; then
+ for site in $sitefiles; do
+ if [ -e "$sitesdir/$site" ]; then
+ cp_echo "CN: Removing $site site configuration file."
+ rm -f $sitesdir/$site
fi
-
- # Remove default DocumentRoot if there's only a one line index.html there
- docroots="/var/www/$HOST /var/www/www.$DOMAIN"
-
- if [ -d "/var/www" ]; then
-
- for docroot in $docroots; do
-
- if [ -d $docroot ]; then
- if [ "x$(echo ${docroot}/*)" = "x${docroot}/index.html" ]; then
- if [ "$(wc -l ${docroot}/index.html | awk '{print $1}')" -eq 1 ]; then
-
- cp_echo "CN: Removing document root directory ${docroot}."
- rm -f $docroot/index.html
- rmdir $docroot || true
- fi
- fi
+ done
+fi
+
+# Remove default DocumentRoot if there's only a one line index.html there
+docroots="/var/www/$HOST /var/www/www.$DOMAIN"
+
+if [ -d "/var/www" ]; then
+ for docroot in $docroots; do
+ if [ -d $docroot ]; then
+ if [ "x$(echo ${docroot}/*)" = "x${docroot}/index.html" ]; then
+ if [ "$(wc -l ${docroot}/index.html | awk '{print $1}')" -eq 1 ]; then
+ cp_echo "CN: Removing document root directory ${docroot}."
+ rm -f $docroot/index.html
+ rmdir $docroot || true
fi
- done
+ fi
fi
-
- # Remove CARNet specific configuration.
- if [ -d "${CONFDIR}/conf.d" ] && [ -n "$(ls ${CONFDIR}/conf.d/)" ]; then
- cp_echo "CN: Disabling CARNet specific configuration."
- for file in ${CONFDIR}/conf.d/*; do
- if [ -f "$file" ]; then
- if egrep -q "^## Begin - Generated by CARNet package apache2-cn$" $file; then
- rm -f $file
- fi
- fi
- done
+ done
+fi
+
+# Remove CARNet specific configuration.
+if [ -d "${CONFDIR}/conf.d" ] && [ -n "$(ls ${CONFDIR}/conf.d/)" ]; then
+ cp_echo "CN: Disabling CARNet specific configuration."
+ for file in ${CONFDIR}/conf.d/*; do
+ if [ -f "$file" ]; then
+ if egrep -q "^## Begin - Generated by CARNet package apache2-cn$" $file; then
+ rm -f $file
+ fi
fi
+ done
+fi
- # Debconf purge
- db_purge
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
- # Mail root
- cp_mail "apache2-cn"
- ;;
- *)
- ;;
-esac
+#DEBHELPER#
+
+# Mail root
+cp_mail "apache2-cn"
exit 0
+++ /dev/null
-maintainer-script-lacks-debhelper-token debian/postrm
Ako to NE zelite, Apache2 server ce posluzivati stranice na adresama:
.
http://${stroj_domena} i https://${stroj_domena}.
-
<VirtualHost *:80>
ServerAdmin webmaster@HOST.DOMAIN
-
+
ServerName HOST.DOMAIN
DocumentRoot DOCROOT
+
LogLevel warn
ErrorLog /var/log/apache2/HOST.DOMAIN-error.log
CustomLog /var/log/apache2/HOST.DOMAIN-access.log combined
# Order allow,deny
# Allow from all
#</Directory>
-
</VirtualHost>
<IfModule mod_ssl.c>
-
-# Since SSL has no NameVirtualHosts, and we don't support machines with
-# multiple IP addresses yet, make this a simple default config.
-
<VirtualHost _default_:443>
ServerAdmin webmaster@HOST.DOMAIN
+
ServerName HOST.DOMAIN
DocumentRoot DOCROOT
+
LogLevel warn
ErrorLog /var/log/apache2/ssl-HOST.DOMAIN-error.log
CustomLog /var/log/apache2/ssl-HOST.DOMAIN-access.log combined
# Order allow,deny
# Allow from all
#</Directory>
-
</VirtualHost>
-
</IfModule>