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

Bug#234489: 'Include /etc/apache2/sites-enabled' a bit too inclusive.



Package: apache2-common
Version: 2.0.48-7
Severity: normal

Hey. I'm finding myself running into a problem a lot, and it's a bit of
a pain. I edit a file in /etc/apache2/sites-enabled/, and keep it open
to test a change with apachectl configtest (for easy undoing). However,
I get the following:

[ dbharris@defiant: ~/ ]$ sudo apachectl configtest
Syntax error on line 1 of /etc/apache2/sites-enabled/.people.circainformation.com.swp:
Invalid command 'b0VIM', perhaps mis-spelled or defined by a module not included in the server configuration
[ dbharris@defiant: ~/ ]$ 

Rather a bit irritating, that's Vim's swapfile. There might be Emacs
files scattered about, as well. That being said, I think including .*
(shell glob, not regexp) is probably not a great idea - prefixing files
with a single period is a common way to stop things from looking at them
automagically.

As such, I'd suggest 'Include /etc/apache2/sites-enabled' be changed to
'Include /etc/apache2/sites-enabled/[^.]*', perhaps 'Include
/etc/apache2/sites-enabled/[^.#]*'. I use the former, works great.

Thanks.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.25-linode23-1um
Locale: LANG=C, LC_CTYPE=C

Versions of packages apache2-common depends on:
ii  debconf                     1.4.11       Debian configuration management sy
ii  debianutils                 2.6.2        Miscellaneous utilities specific t
ii  libapr0                     2.0.48-7     The Apache Portable Runtime
ii  libc6                       2.3.2.ds1-11 GNU C Library: Shared libraries an
ii  libdb4.2                    4.2.52-10    Berkeley v4.2 Database Libraries [
ii  libexpat1                   1.95.6-6     XML parsing C library - runtime li
ii  libldap2                    2.1.25-1     OpenLDAP libraries
ii  libssl0.9.7                 0.9.7c-5     SSL shared libraries
ii  mime-support                3.25-1       MIME files 'mime.types' & 'mailcap
ii  net-tools                   1.60-9       The NET-3 networking toolkit
ii  openssl                     0.9.7c-5     Secure Socket Layer (SSL) binary a
ii  ssl-cert                    1.0-7        Simple debconf wrapper for openssl
ii  zlib1g                      1:1.2.1-4    compression library - runtime

-- no debconf information




Reply to: