You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jason Morehouse <jm...@netconcepts.com> on 2004/08/02 19:44:37 UTC
[users@httpd] gdbm: rewritemap -- broken?
Hello all,
I've spent the last 4 hours trying to get rewritemap to work with
apache-2.50 to no success. I'm not sure if it's a bug, or I'm just
completely missing something. Any help would be appreciated...
The text rewrite map works just fine:
RewriteMap vhost txt:/var/www/map.txt
If I switch to a db, it doesn't error, but also doesn't rewrite. The
database is a single gdmb file with 1 key and 1 value as is the text map.
RewriteMap vhost dbm:/var/www/map
Specify ndbm: errors on apacheclr restart.
RewriteMap vhost dbm=gdbm:/var/www/map
[/usr/src/httpd-2.0.50]
Syntax error on line 44 of /etc/httpd.conf:
RewriteMap: dbm type gdbm is invalid
type is specified as documented in:
http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html
Apache is configured --with-gdbm as documented in:
http://httpd.apache.org/docs-2.0/programs/configure.html
configure shows:
root-v>>./configure '--enable-rewrite' '--enable-so' '--enable-ssl=shared'
'--wi th-ssl=/usr/include/openssl' '--enable-ssl' --with-gdbm | grep -i
gdbm
checking gdbm.h usability... yes
checking gdbm.h presence... yes
checking for gdbm.h... yes
checking for gdbm_open in -lgdbm... yes
setting APRUTIL_EXPORT_LIBS to "-lgdbm"
setting APRUTIL_LIBS to "-lgdbm"
Oddly (or not?) a make only shows:
/usr/src/httpd-2.0.50/srclib/apr/libtool --silent --mode=link gcc
-g -O2 -pthread <snip...> -lgdbm /usr/src/httpd-2.0.50/srclib/apr-util/xml/expat/lib/libexpat.la
~/apachectl -l
[/www/php/bin]
Compiled in modules:
core.c
mod_access.c
mod_auth.c
mod_include.c
mod_log_config.c
mod_env.c
mod_setenvif.c
mod_ssl.c
prefork.c
http_core.c
mod_mime.c
mod_status.c
mod_autoindex.c
mod_asis.c
mod_cgi.c
mod_negotiation.c
mod_dir.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_rewrite.c
mod_so.c
Show ndbm show in there? Any pointers?
Thank you!
--
Jason Morehouse (jm@netconcepts.com)
Netconcepts LTD - Auckland, New Zealand
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org