Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 57151 invoked from network); 16 Apr 2009 18:52:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Apr 2009 18:52:40 -0000 Received: (qmail 54579 invoked by uid 500); 16 Apr 2009 18:52:36 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 54514 invoked by uid 500); 16 Apr 2009 18:52:36 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 54505 invoked by uid 99); 16 Apr 2009 18:52:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Apr 2009 18:52:36 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of evilpus@gmail.com designates 72.14.220.156 as permitted sender) Received: from [72.14.220.156] (HELO fg-out-1718.google.com) (72.14.220.156) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Apr 2009 18:52:27 +0000 Received: by fg-out-1718.google.com with SMTP id 16so847287fgg.17 for ; Thu, 16 Apr 2009 11:52:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=5KLEhv0DRp7RiKylNLCNeSL0DbUgQ7tRQ+dGjJ67K40=; b=xcSYP2N5OhvvqxI/Zr5MaefH49GSz7KyyRjOMUHqV2WbRozXE1QpTlX1rKD2IQqfAv sGgFx5NXTV+xpr3ggDAau3tP4rSq7hK0cnvwc5sgZM4eCeuFIhP9EGQcaqwLY4b1MRg4 Pk+nWH2N41yVoD7tQhAofjAGn/U6vUCOXDrzw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=P5+kjwrQjqSIVdccXC6kqiTjDvNv2QiFIqRaRj12UCyEt31dUEJ2IsV9SPDFUMTwVr YmSmlcrScVLPThxIm0gJntPvcbL3tpaBeluE1/pCNc9SpiZo2xtzeeRq4Oue1KwKA+dU 7KICY26Xe9WBYGIgqROhPfGsv7lAdCyfmeBDM= MIME-Version: 1.0 Received: by 10.239.162.70 with SMTP id k6mr64479hbd.109.1239907926419; Thu, 16 Apr 2009 11:52:06 -0700 (PDT) In-Reply-To: <6a46e66b0904151334l7ceebe5ap3850b5f7c2fa455c@mail.gmail.com> References: <6a46e66b0904150136r11185f6r48b1df65c39ce5bc@mail.gmail.com> <1404e5910904150725n642dfa37mcf9352444281e070@mail.gmail.com> <6a46e66b0904150740k26a1ae2clb7212dae2b6b7028@mail.gmail.com> <49E5F33E.2010105@ice-sa.com> <6a46e66b0904151013k2aafb400s5f522f8004f52f45@mail.gmail.com> <6a46e66b0904151334l7ceebe5ap3850b5f7c2fa455c@mail.gmail.com> Date: Thu, 16 Apr 2009 21:52:06 +0300 Message-ID: <6a46e66b0904161152p136fc56fn150d75d8615566aa@mail.gmail.com> From: Ruben Lihet To: users@httpd.apache.org, aw@ice-sa.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] cgi http complete header Where do I have to put the dash "-" ? In this rule: RewriteRule ^([^/\.]+)/?$ nph-main.cgi?lid=3D$1&header=3D%{HTTP:Range} 2009/4/15 Ruben Lihet : > Okay, so .. > I made a little test. In the same directory with my cgi script I write > a .htaccess file containig this: > > Allow from all > Options +FollowSymLinks > RewriteEngine on > RewriteRule ^([^/\.]+)/?$ nph-main.cgi?lid=3D$1&header=3D%{HTTP:Range} > > The problem now is that when I call the script like this: > http://web.devel/cgi-bin/rs/24333/ > > the browser says: > > Not Found > The requested URL /var/www/cgi-bin/rs/nph-main.cgi was not found on this = server > > which I find very strange because the script is there. Another thing I > noticed is that apache logs this error: > > [Tue Apr 07 00:59:08 2009] [error] [client 192.168.18.1] File does not > exist: /var/www/html/var > > Any hints what could it be ? > Thanks again! > > > 2009/4/15 Ruben Lihet : >> great, thanks, than I'll stick to mod_rewrite and do some digging in the= docs! >> >> 2009/4/15 Andr=C3=A9 Warnier : >>> Ruben Lihet wrote: >>>> >>>> OK, but can mod_rewrite read the http-header ? >>> >>> That's exactly what Eric suggested. >>> >>> mod_rewrite reads the http header, and copies its content to an environ= ment >>> value, which your cgi program can just obtain from its running environm= ent. >>> >>> --------------------------------------------------------------------- >>> The official User-To-User support forum of the Apache HTTP Server Proje= ct. >>> See for more info. >>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org >>> =C2=A0" =C2=A0 from the digest: users-digest-unsubscribe@httpd.apache.o= rg >>> For additional commands, e-mail: users-help@httpd.apache.org >>> >>> >> >> >> >> -- >> Lihet Ruben >> Tel: +40 746 037 017 >> email: lihet.ruben@gmail.com, evilpus@gmail.com >> Web: http://www.faultlessp.net/ >> > --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See 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