How to handle configuration for apache modules?

2005-08-04 Thread Piotr Roszatycki
Hi.

I'm a little confused about handling configuration for apache and apache2. The 
first doesn't support /etc/apache*/mods-available/* files so the module 
package can't provide proper *.conf file. I rather would like to see 
mods-available/mods-enabled infrastructure in apache 1.3 packages rather than 
config files located in conf.d for apache modules.

It would be absurd to create /etc/libapache-mod-XXX directory for each 
external apache module. This should be suggested only for web applications 
which could 
provide /etc/$PACKAGE/{apache,apache-ssl,apache-perl,apache2}.conf files and 
create symlink into /etc/$APACHE/conf.d in postinst script.

I really would like to see /etc/apache/mods-available 
and /etc/apache/mods-enabled directories in apache package. I see no reason 
why apache-modconf file wouldn't support this schema. Instead of creating 
modules.conf file it could create proper symlink from mods-available to 
mods-enabled. In fact, it could be much safer as far as it would be possible 
to use ... in *.load files.

-- 
 .''`.Piotr Roszatycki, Netia SA
: :' :mailto:[EMAIL PROTECTED]
`. `' mailto:[EMAIL PROTECTED]
  `-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#307798: apache: Name clash for /icons/ and /images/

2005-05-05 Thread Piotr Roszatycki
On Thu, 5 May 2005, Thom May wrote:
severity 307798 minor
thanks
Please learn about severities before filing any further bugs.
The interpretation of the severity for this bug depends on point of view. 
For the end user it is problematic, because he can't upload and use 
/icons/ or /images/ directory name for its own web application. It has 
impact for some unknown count of application.

Even I remove the alias from httpd.conf, it will breaks the directory 
index or other pages generated internally by webserver.

--
.''`.Piotr Roszatycki, Netia SA
: :' :mailto:[EMAIL PROTECTED]
`. `' mailto:[EMAIL PROTECTED]
  `-
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Bug#307798: apache: Name clash for /icons/ and /images/

2005-05-05 Thread Piotr Roszatycki
Package: apache
Version: 1.3.33-4
Severity: important

I was suprised that on the fresh installed Apache server, the following URL
doesn't work:

http://limbdemo.localhost/images/p-by-limb.gif

In the error.log:

[Thu May  5 17:03:12 2005] [error] [client 127.0.0.5] File does not exist: 
/usr/share/images/p-by-l
imb.gif

Unfortunately, I can't "reset" these aliases for virtual host.

I think the aliases like /icons/ or /images/ or /doc/ are very unfortunate and
provokes many problems if the services on virtual servers utilise the same name
for directories.


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-1-686
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)

Versions of packages apache depends on:
ii  apache-common   1.3.33-4 support files for all Apache webse
ii  debconf 1.4.48   Debian configuration management sy
ii  dpkg1.10.27  Package maintenance system for Deb
ii  libc6   2.3.2.ds1-21 GNU C Library: Shared libraries an
ii  libdb4.24.2.52-18Berkeley v4.2 Database Libraries [
ii  libexpat1   1.95.8-3 XML parsing C library - runtime li
ii  libmagic1   4.12-1   File type determination library us
ii  logrotate   3.7-2Log rotation utility
ii  mime-support3.31-1   MIME files 'mime.types' & 'mailcap
ii  perl5.8.4-8  Larry Wall's Practical Extraction 

-- debconf information excluded


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#305495: apache: AddDefaultCharset breaks the non-latin1 pages

2005-04-20 Thread Piotr Roszatycki
Package: apache
Version: 1.3.33-4
Severity: minor

There is problem with AddDefaultCharset. The default charset is iso-8859-1.
That means the pages which sets other charsets (iso-8859-2, cyrilic, etc.) are
broken in the default Apache configuration. It seems to me as
English-language-centric point of view.

Everybody who I know just distable this setting after installing the package,
but it is a little annoying.

Maybe the Debconf question might help.

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.11-1-686
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)

Versions of packages apache depends on:
ii  apache-common   1.3.33-4 support files for all Apache webse
ii  debconf 1.4.48   Debian configuration management sy
ii  dpkg1.10.27  Package maintenance system for Deb
ii  libc6   2.3.2.ds1-21 GNU C Library: Shared libraries an
ii  libdb4.24.2.52-18Berkeley v4.2 Database Libraries [
ii  libexpat1   1.95.8-1 XML parsing C library - runtime li
ii  libmagic1   4.12-1   File type determination library us
ii  logrotate   3.7-2Log rotation utility
ii  mime-support3.31-1   MIME files 'mime.types' & 'mailcap
ii  perl5.8.4-8  Larry Wall's Practical Extraction 

-- debconf information excluded


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#304786: apache2-common: Include /etc/apache2/conf.d/*.conf

2005-04-15 Thread Piotr Roszatycki
I've learnt that apache package has applied patch which excludes *.dpkg-* 
files from included directory. I think it could be better solution if you 
don't want to change apache2.conf file and be backward compatible.

-- 
 .''`.Piotr Roszatycki, Netia SA
: :' :mailto:[EMAIL PROTECTED]
`. `' mailto:[EMAIL PROTECTED]
  `-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#304785: Include /etc/apache/conf.d/*.conf

2005-04-15 Thread Piotr Roszatycki
Package: apache
Version: 1.3.33-4
Severity: important

Please convert

Include /etc/apache/conf.d

to the:

Include /etc/apache/conf.d/*.conf

The files in this directory are handled by dpkg and i.e. ucf so there are
problems after upgrades.


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-1-686
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)

Versions of packages apache depends on:
ii  apache-common   1.3.33-4 support files for all Apache webse
ii  debconf 1.4.48   Debian configuration management sy
ii  dpkg1.10.27  Package maintenance system for Deb
ii  libc6   2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libdb4.24.2.52-18Berkeley v4.2 Database Libraries [
ii  libexpat1   1.95.8-1 XML parsing C library - runtime li
ii  libmagic1   4.12-1   File type determination library us
ii  logrotate   3.7-2Log rotation utility
ii  mime-support3.31-1   MIME files 'mime.types' & 'mailcap
ii  perl5.8.4-8  Larry Wall's Practical Extraction 

-- debconf information excluded


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#304786: apache2-common: Include /etc/apache2/conf.d/*.conf

2005-04-15 Thread Piotr Roszatycki
Package: apache2-common
Version: 2.0.53-5
Severity: important

Please convert

Include /etc/apache2/conf.d/[^.#]*

to the:

Include /etc/apache2/conf.d/*.conf

The files in this directory are handled by dpkg and i.e. ucf so there are
problems after upgrades.


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-1-686
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)

Versions of packages apache2-common depends on:
ii  apache2-utils   2.0.53-5 utility programs for webservers
ii  debconf 1.4.48   Debian configuration management sy
ii  debianutils 2.13.2   Miscellaneous utilities specific t
ii  libc6   2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libdb4.24.2.52-18Berkeley v4.2 Database Libraries [
ii  libexpat1   1.95.8-1 XML parsing C library - runtime li
ii  libgcc1 1:4.0-0pre0  GCC support library
ii  libmagic1   4.12-1   File type determination library us
ii  mime-support3.31-1   MIME files 'mime.types' & 'mailcap
ii  net-tools   1.60-10  The NET-3 networking toolkit
ii  openssl 0.9.7e-3 Secure Socket Layer (SSL) binary a
ii  ssl-cert1.0-11   Simple debconf wrapper for openssl

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#304191: apache-common: apache-modconf with higher Debconf priority if no arguments

2005-04-11 Thread Piotr Roszatycki
Package: apache-common
Version: 1.3.33-4
Severity: wishlist
Tags: patch

The /etc/apache/modules.conf file tells:

# To update it, run the command:
#/usr/sbin/apache-modconf apache

But it is not true if default priority (medium) is set for Debconf.
The `apache-modconf apache' does nothing!

I think it would be better to set higher Debconf priority if apache-modconf
is run without additional arguments.

My patch:

--- apache-modconf.orig 2005-02-08 04:31:11 +0100
+++ apache-modconf  2005-04-11 16:57:35 +0200
@@ -330,6 +330,7 @@
 CMD=
 ASKRESTART=true
 QUEUECHANGES=false
+PRI=low
 if [ "$2" ]; then
if [ "$2" != "enable" ] && [ "$2" != "disable" ] && [ "$2" != 
"internal" ] && [ "$2" != "query" ]; then
go_out command
@@ -358,6 +359,8 @@
fi
;;
esac
+else
+PRI=medium
 fi
 
 ### time to do some real work 
@@ -387,7 +390,7 @@
db_fset apache-shared/debconf-modules seen true
 fi
 
-db_input low apache-shared/debconf-modules || true
+db_input $PRI apache-shared/debconf-modules || true
 
 if [ "$QUIET" != "true" ]; then
db_go || true


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-1-686
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)

Versions of packages apache-common depends on:
ii  apache2-utils   2.0.53-5 utility programs for webservers
ii  debconf 1.4.48   Debian configuration management sy
ii  elinks [www-browser]0.10.2-2 advanced text-mode WWW browser
ii  emacs20 [www-browser]   20.7-13.3The GNU Emacs editor.
ii  konqueror [www-browser] 4:3.3.2-1KDE's advanced File Manager, Web B
ii  libc6   2.3.2.ds1-20 GNU C Library: Shared libraries an
ii  libdb4.24.2.52-18Berkeley v4.2 Database Libraries [
ii  libexpat1   1.95.8-1 XML parsing C library - runtime li
ii  links [www-browser] 0.99+1.00pre12-1 Character mode WWW browser
ii  links2 [www-browser]2.1pre16-1   Web browser running in both graphi
ii  lynx [www-browser]  2.8.5-2  Text-mode WWW Browser
ii  mime-support3.31-1   MIME files 'mime.types' & 'mailcap
ii  mozilla-browser [www-br 2:1.7.6-1The Mozilla Internet application s
ii  mozilla-firefox [www-br 1.0.2-3  lightweight web browser based on M
ii  navigator-smotif-477 [w 4.77-2   Netscape Navigator 4.77 (static Mo
ii  opera [www-browser] 7.54-20040803.5  The Opera Web Browser
ii  perl5.8.4-8  Larry Wall's Practical Extraction 
ii  sed 4.1.4-2  The GNU sed stream editor
ii  ucf 1.17 Update Configuration File: preserv
ii  w3m [www-browser]   0.5.1-3  WWW browsable pager with excellent

-- debconf information excluded


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#294395: apache2-threaded-dev: Can't build php5 module

2005-02-09 Thread Piotr Roszatycki
Package: apache2-threaded-dev
Version: 2.0.53-1
Severity: grave
Justification: renders package unusable

PHP5 can't compile with Apache 2.0.53 and compiles well with previous version.

$ make
/bin/sh 
/home/dexter/src/alioth/pear-package/local/php5/debian/tmp/php-5.0.3/apache2-build/libtool--preserve-dup-deps
 --mode=compile 
/home/dexter/src/alioth/pear-package/local/php5/debian/tmp/php-5.0.3/apache2-build/meta_ccld
  -I/usr/include/apache2  -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 
-D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I/usr/include/apr-0   
-I/usr/include/apr-0 -I/usr/include -Isapi/apache2handler/ 
-I/home/dexter/src/alioth/pear-package/local/php5/debian/tmp/php-5.0.3/sapi/apache2handler/
 -DPHP_ATOM_INC 
-I/home/dexter/src/alioth/pear-package/local/php5/debian/tmp/php-5.0.3/apache2-build/include
 
-I/home/dexter/src/alioth/pear-package/local/php5/debian/tmp/php-5.0.3/apache2-build/main
 -I/home/dexter/src/alioth/pear-package/local/php5/debian/tmp/php-5.0.3 
-I/home/dexter/src/alioth/pear-package/local/php5/debian/tmp/php-5.0.3/apache2-build/Zend
 -I/home/dexter/src/alioth/pear-package/local/php5/debian/tmp/php-5.0.3/main 
-I/home/dexter/src/alioth/pear-package/local/php5/de
 bian/tmp/php-5.0.3/Zend 
-I/home/dexter/src/alioth/pear-package/local/php5/debian/tmp/php-5.0.3/TSRM 
-I/home/dexter/src/alioth/pear-package/local/php5/debian/tmp/php-5.0.3/apache2-build/
  -D_REENTRANT 
-I/home/dexter/src/alioth/pear-package/local/php5/debian/tmp/php-5.0.3/apache2-build/TSRM
  -O2 -Wall -fsigned-char -fno-strict-aliasing -gstabs -pthread -DZTS  
-prefer-pic -c 
/home/dexter/src/alioth/pear-package/local/php5/debian/tmp/php-5.0.3/sapi/apache2handler/mod_php5.c
 -o sapi/apache2handler/mod_php5.lo
 
/home/dexter/src/alioth/pear-package/local/php5/debian/tmp/php-5.0.3/apache2-build/meta_ccld
 -I/usr/include/apache2 -DLINUX=2 -D_REENTRANT -D_XOPEN_SOURCE=500 
-D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE -I/usr/include/apr-0 
-I/usr/include/apr-0 -I/usr/include -Isapi/apache2handler/ 
-I/home/dexter/src/alioth/pear-package/local/php5/debian/tmp/php-5.0.3/sapi/apache2handler/
 -DPHP_ATOM_INC 
-I/home/dexter/src/alioth/pear-package/local/php5/debian/tmp/php-5.0.3/apache2-build/include
 
-I/home/dexter/src/alioth/pear-package/local/php5/debian/tmp/php-5.0.3/apache2-build/main
 -I/home/dexter/src/alioth/pear-package/local/php5/debian/tmp/php-5.0.3 
-I/home/dexter/src/alioth/pear-package/local/php5/debian/tmp/php-5.0.3/apache2-build/Zend
 -I/home/dexter/src/alioth/pear-package/local/php5/debian/tmp/php-5.0.3/main 
-I/home/dexter/src/alioth/pear-package/local/php5/debian/tmp/php-5.0.3/Zend 
-I/home/dexter/src/alioth/pear-package/local/php5/debian/tmp/php-5.0.3/TSRM 
-I/home/dexter/src/alioth/pear-packa
 ge/local/php5/debian/tmp/php-5.0.3/apache2-build/ -D_REENTRANT 
-I/home/dexter/src/alioth/pear-package/local/php5/debian/tmp/php-5.0.3/apache2-build/TSRM
 -O2 -Wall -fsigned-char -fno-strict-aliasing -gstabs -pthread -DZTS -c 
/home/dexter/src/alioth/pear-package/local/php5/debian/tmp/php-5.0.3/sapi/apache2handler/mod_php5.c
  -fPIC -DPIC -o sapi/apache2handler/.libs/mod_php5.o
In file included from 
/home/dexter/src/alioth/pear-package/local/php5/debian/tmp/php-5.0.3/sapi/apache2handler/php_apache.h:24,
 from 
/home/dexter/src/alioth/pear-package/local/php5/debian/tmp/php-5.0.3/sapi/apache2handler/mod_php5.c:26:
/usr/include/apache2/httpd.h:1506: error: parse error before '*' token
/usr/include/apache2/httpd.h:1507: warning: type defaults to `int' in 
declaration of `ap_pregcomp'
/usr/include/apache2/httpd.h:1507: warning: data definition has no type or 
storage class
/usr/include/apache2/httpd.h:1514: error: parse error before "ap_regex_t"
/usr/include/apache2/httpd.h:1528: error: parse error before '*' token
/usr/include/apache2/httpd.h:1538: warning: type defaults to `int' in 
declaration of `ap_regex_t'
/usr/include/apache2/httpd.h:1538: error: parse error before '*' token
/usr/include/apache2/httpd.h:1553: error: parse error before "ap_regmatch_t"
make: *** [sapi/apache2handler/mod_php5.lo] Błąd 1


-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-1-686
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)

Versions of packages apache2-threaded-dev depends on:
ii  apache2-common2.0.53-1   next generation, scalable, extenda
ii  autoconf  2.59a-3automatic configure script builder
ii  autotools-dev 20041130.2 Update infrastructure for config.{
ii  bzip2 1.0.2-4high-quality block-sorting file co
ii  libapr0-dev   2.0.53-1   development headers for libapr
ii  libdb4.2-dev  4.2.52-18  Berkeley v4.2 Database Libraries [
ii  libpcre3-dev  4.5-1.1Perl 5 Compatible Regular Expressi
ii  libssl-dev0.9.7e-3   SSL developmen

Re: Apache configuration for virtual mass-hosting

2004-07-14 Thread Piotr Roszatycki
On Wed, 14 Jul 2004, Fabio Massimo Di Nitto wrote:
> On Wed, 14 Jul 2004, Piotr Roszatycki wrote:
> > The virtual server is created with proper mkdir command. The schema is very
> > simple:
> >
> > /var/www/vhosts/- for document root
> > and /var/log/apache/vhosts/- for log files.
> >
> > There is no VirtualHost sections in httpd.conf. Whole magic is done through
> > mod_rewrite.
> >
> > See http://people.debian.org/~dexter/apacheconf/ and have a good fun.
>
> libapache-mod-dynvhost

1. Only for testing and unstable.
2. Apache 1.3 only
3. Bug#228867
4. If you don't know what 'seq' is you are dumb. mod_dynvhost - Was
a really good module, but you should now use
http://httpd.apache.org/docs-2.0/vhosts/.


-- 
 .''`.Piotr Roszatycki, Netia SA
: :' :mailto:[EMAIL PROTECTED]
`. `' mailto:[EMAIL PROTECTED]
  `-




Apache configuration for virtual mass-hosting

2004-07-14 Thread Piotr Roszatycki
Hi.

I'd like to contribute to Debian my Apache 1.3 configuration which provides 
the easiest way to using virtual servers.

The virtual server is created with proper mkdir command. The schema is very 
simple:

/var/www/vhosts/- for document root 
and /var/log/apache/vhosts/- for log files.

There is no VirtualHost sections in httpd.conf. Whole magic is done through 
mod_rewrite.

See http://people.debian.org/~dexter/apacheconf/ and have a good fun.

-- 
 .''`.Piotr Roszatycki, Netia SA
: :' :mailto:[EMAIL PROTECTED]
`. `' mailto:[EMAIL PROTECTED]
  `-