You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Zvi Kave <tz...@razlee.com> on 2008/01/09 09:21:02 UTC
[users@httpd] mod_dbd: C Example of simple module working with DB including httpd.conf lines
I need an simple module example working with any supported database.
(Let's say MySQL)
including example of the httpd.conf lines.
Something which reads/inserts a line in a DB table.
I have Nick Kew book "the Apache modules" with the mod_auth*.c
but this chapter is not enough clear to me.
Best regards,
Zvi
---------------------------------------------------------------------
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
Re: [users@httpd] Apache under windows Rewrite Error
Posted by "Neil A. Hillard" <ne...@agustawestland.com>.
Alberto García Gómez wrote:
> HI fellows:
>
> I in front of this several error. I have an Apache server under windows
> and everything is working fine except but this small error when I using
> mod_rewirte (under *nix work fine)
<snip>
> this is my vhost server conf:
> RewriteLOg logs/server.com-rewrite_log
> RewriteRule ^/(.*\.html)$ C:\\apache\\server\\index.php?$1
<snip>
Have you tried:
RewriteRule ^/(.*\.html)$ /index.php?$1 [L]
Neil.
PS. You may want to add a QSA to the options.
--
Neil Hillard neil.hillard@agustawestland.com
AgustaWestland http://www.whl.co.uk/
Disclaimer: This message does not necessarily reflect the
views of Westland Helicopters Ltd.
---------------------------------------------------------------------
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
[users@httpd] Apache under windows Rewrite Error
Posted by Alberto García Gómez <al...@ipimtzcm.rimed.cu>.
HI fellows:
I in front of this several error. I have an Apache server under windows and everything is working fine except but this small error when I using mod_rewirte (under *nix work fine)
this is my vhost server conf:
NameVirtualHost 127.0.0.1:80
<VirtualHost 127.0.0.1:80>
ServerAdmin webmaster@server.com
DocumentRoot C:\apache\server
ServerName www.server.com
ErrorLog logs/server.com-error_log
CustomLog logs/server.com-access_log common
RewriteEngine On
RewriteLogLevel 2
RewriteLOg logs/server.com-rewrite_log
RewriteRule ^/(.*\.html)$ C:\\apache\\server\\index.php?$1
</VirtualHost>
and when I request http://www.server.com/page1.html its return this rewrite log:
127.0.0.1 - - [09/Jan/2008:11:50:33 --0500] [www.server.com/sid#7449f8][rid#1098688/initial] (2) init rewrite engine with requested uri /page1.html
127.0.0.1 - - [09/Jan/2008:11:50:33 --0500] [www.server.com/sid#7449f8][rid#1098688/initial] (2) rewrite '/page1.html' -> 'C:\apache\server\index.php?page1.html'
127.0.0.1 - - [09/Jan/2008:11:50:33 --0500] [www.server.com/sid#7449f8][rid#1098688/initial] (2) local path result: C:\apache\server\index.php
127.0.0.1 - - [09/Jan/2008:11:50:33 --0500] [www.server.com/sid#7449f8][rid#1098688/initial] (1) prefixing with document_root of C:\apache\server\index.php FAILED
127.0.0.1 - - [09/Jan/2008:11:50:33 --0500] [www.server.com/sid#7449f8][rid#1099f00/initial/redir#1] (2) init rewrite engine with requested uri /error/HTTP_BAD_REQUEST.html.var
127.0.0.1 - - [09/Jan/2008:11:50:33 --0500] [www.server.com/sid#7449f8][rid#1099f00/initial/redir#1] (1) pass through /error/HTTP_BAD_REQUEST.html.var
127.0.0.1 - - [09/Jan/2008:11:50:33 --0500] [www.server.com/sid#7449f8][rid#10ac730/subreq] (2) init rewrite engine with requested uri /error/include/top.html
127.0.0.1 - - [09/Jan/2008:11:50:33 --0500] [www.server.com/sid#7449f8][rid#10ac730/subreq] (2) rewrite '/error/include/top.html' -> 'C:\apache\server\index.php?error/include/top.html'
127.0.0.1 - - [09/Jan/2008:11:50:33 --0500] [www.server.com/sid#7449f8][rid#10ac730/subreq] (2) local path result: C:\apache\server\index.php
127.0.0.1 - - [09/Jan/2008:11:50:33 --0500] [www.server.com/sid#7449f8][rid#10ac730/subreq] (1) prefixing with document_root of C:\apache\server\index.php FAILED
127.0.0.1 - - [09/Jan/2008:11:50:33 --0500] [www.server.com/sid#7449f8][rid#10ae738/subreq] (2) init rewrite engine with requested uri /error/include/bottom.html
127.0.0.1 - - [09/Jan/2008:11:50:33 --0500] [www.server.com/sid#7449f8][rid#10ae738/subreq] (2) rewrite '/error/include/bottom.html' -> 'C:\apache\server\index.php?error/include/bottom.html'
127.0.0.1 - - [09/Jan/2008:11:50:33 --0500] [www.server.com/sid#7449f8][rid#10ae738/subreq] (2) local path result: C:\apache\server\index.php
127.0.0.1 - - [09/Jan/2008:11:50:33 --0500] [www.server.com/sid#7449f8][rid#10ae738/subreq] (1) prefixing with document_root of C:\apache\server\index.php FAILED
Este correo ha sido enviado desde el Politécnico de Informática "Carlos Marx" de Matanzas.
"La gran batalla se librará en el campo de las ideas"
Re: [users@httpd] mod_dbd: C Example of simple module working with DB
including httpd.conf lines
Posted by Tom Donovan <do...@bellatlantic.net>.
Zvi Kave wrote:
> I need an simple module example working with any supported database.
> (Let's say MySQL)
> including example of the httpd.conf lines.
> Something which reads/inserts a line in a DB table.
Two DBD modules with source code - mod_log_dbd and mod_vhost_dbd - are at
http://dbd-modules.googlecode.com/
mod_vhost_dbd is the simpler of the two, but I doubt it is much clearer than the regular Apache
mod_authn_dbd module.
-tom-
p.s. I found Nick's book to be very clear. Reading "Apache Modules" and a look at the mod_authn_dbd
source code was enough to write these modules.
---------------------------------------------------------------------
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