[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#214861: apache: postinst script doesn't handle a directory of vhost files at all



Package: apache
Version: 1.3.28-1
Severity: normal
Tags: sid

the postinst should either skip the vhost dir, and point very loudly to a README on
what to change in the vhost files, or be able to go into the mentioned
directory and modify the vhosts there. even though i storngly feel that
this is tampering with user/admin settings way too much, IMO. *G*

this is an example of my Include for that directory:

Include $APACHE_CONF_DIR/virtualhosts/

this works fine, server starts with no problems, and serves up the
vhosts just fine, just thepostinst doesn't handle them very well at all.

+ awk $1 ~ /^\s*[A-Za-z]*Log$/ {print $2} /etc/apache/access.conf /etc/apache/httpd.conf /etc/apache/modules.conf /etc/apache/srm.conf /etc/acidlab/apache.conf /etc/apache/modules.conf /etc/apache/vhosts/ /etc/phpgroupware/apache.conf /etc/phppgadmin/apache.conf /etc/squirrelmail/apache.conf
+ grep -v |
+ sort -u
awk: cmd. line:1: (FILENAME=/etc/apache/modules.conf FNR=38) fatal: file `/etc/apache/vhosts/' is a directory

i'll try sticking a * after the vhosts/

that helped a lot. *G*. maybe a PEBKAC, but i hadn't had problems like i
said before.

cheers

-- System Information:
Debian Release: testing/unstable
Architecture: powerpc
Kernel: Linux nuit.ca 2.4.22-xfs-lowlat-ben2 #1 dim sep 14 22:45:20 UTC 2003 ppc
Locale: LANG=C, LC_CTYPE=en_CA

Versions of packages apache depends on:
ii  apache-common                 1.3.28-1   Support files for all Apache webse
ii  debconf                       1.3.14     Debian configuration management sy
ii  dpkg                          1.10.15    Package maintenance system for Deb
ii  libc6                         2.3.2-8    GNU C Library: Shared libraries an
ii  libdb4.1                      4.1.25-9   Berkeley v4.1 Database Libraries [
ii  libexpat1                     1.95.6-6   XML parsing C library - runtime li
ii  libmagic1                     4.04-1     File type determination library us
ii  logrotate                     3.6.5-2    Log rotation utility
ii  mime-support                  3.23-1     MIME files 'mime.types' & 'mailcap
ii  perl [perl5]                  5.8.1-2    Larry Wall's Practical Extraction 

-- debconf information:
* apache/server-port: 80
* apache/init: true
* apache/document-root: /var/www
* apache/server-name: www.nuit.ca
* apache/enable-suexec: true
* apache/server-admin: www-admin@nuit.ca




Reply to: