diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-07-14 15:49:09 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2013-07-14 15:49:09 +0300 |
commit | 7111da4edcbff6f8a27af53bb340e31ea3c25867 (patch) | |
tree | 94034d41cb9fc26c3382408f3d2ef83c9cbfd385 /README | |
parent | 72ccd492bcf4979e6de11569a46ea47040897865 (diff) | |
download | vmod-dbrw-7111da4edcbff6f8a27af53bb340e31ea3c25867.tar.gz vmod-dbrw-7111da4edcbff6f8a27af53bb340e31ea3c25867.tar.bz2 |
Add PostgreSQL support.
Diffstat (limited to 'README')
-rw-r--r-- | README | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -8,8 +8,7 @@ structure, considerably speeding up their handling. Another advantage of this approach is that rewrite rules stored in a database are easier to maintain. -This version supports MySQL databases. Support for PostgreSQL will be -added soon. +This version supports MySQL and PostgreSQL databases. * Example @@ -37,7 +36,7 @@ sub vcl_recv { set req.http.X-Redirect-To = dbrw.rewrite("host=" + req.http.Host + ";" + "url=" + req.url); - if (req.http.X-Redirect-To) { + if (req.http.X-Redirect-To != "") { error(750, "Redirect"); } } |