Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 2938 invoked by uid 500); 13 Jan 2003 20:08:21 -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: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 2923 invoked from network); 13 Jan 2003 20:08:21 -0000 Received: from coquelicot.easter-eggs.com (62.4.19.191) by daedalus.apache.org with SMTP; 13 Jan 2003 20:08:21 -0000 Received: from rose.easter-eggs.fr (rose.easter-eggs.fr [10.0.0.2]) by coquelicot.easter-eggs.com (Postfix) with ESMTP id 5AFF978E0 for ; Mon, 13 Jan 2003 21:08:22 +0100 (CET) Received: from verveine.easter-eggs.fr (verveine.easter-eggs.fr [10.0.0.67]) by rose.easter-eggs.fr (Postfix) with ESMTP id 7A234147 for ; Mon, 13 Jan 2003 21:08:24 +0100 (CET) Received: by verveine.easter-eggs.fr (Postfix, from userid 1006) id BD8BC103160; Mon, 13 Jan 2003 21:09:28 +0100 (CET) Date: Mon, 13 Jan 2003 21:09:28 +0100 From: Pascal Brugier To: users@httpd.apache.org Message-ID: <20030113200928.GA11026@easter-eggs.com> Reply-To: Pascal Brugier Mail-Followup-To: users@httpd.apache.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+HP7ph2BbKc20aGI" Content-Disposition: inline User-Agent: Mutt/1.3.28i X-Operating-System: Debian Gnu/Linux 2.4.18-k7 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: [users@httpd] ProxyPass Logs and index --+HP7ph2BbKc20aGI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello everybody, I'm new on the list and I hope that my bad English will not be an problem ;-) I've a network with 3 public domains: - 1 for the firewall - 1 for the dmz=20 - 1 for the lan - In the dmz is a bastion with Apache-ssl as ProxyPass: LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so LoadModule proxy_module /usr/lib/apache/1.3/libproxy.so NameVirtualHost BASTION:80 RewriteEngine On RewriteRule ^/$ http://10.0.0.67/%{HTTP_HOST} [P] RewriteLogLevel 5 RewriteLog /var/log/apache/rewrite.log CustomLog /var/log/apache/proxy-access.log full ErrorLog /var/log/apache/proxy-error.log I use this RewriteRule because the domain of the lan is the same of the dmz and i cant'do in an other way. - In the Lan is server with Apache=20 LoadModule rewrite_module /usr/lib/apache/1.3/mod_rewrite.so NameVirtualHost 10.0.0.67:80 ServerAdmin me@here RewriteEngine On RewriteRule ^/(.*)\.easter-eggs\.fr$ /var/www/$1/index.html RewriteLog /var/log/apache/rewrite.log RewriteLogLevel 5 ErrorLog /var/log/apache/proxy.easter-eggs.fr-error.log CustomLog /var/log/apache/proxy.easter-eggs.fr-access.log proxy My questions are: 1) Is there a solution to have in the server's logs the name or the address of the client as we can have it on the proxypass's logs I try to create an server environment variable but it doesn't do what I want perhaps I didn't do the good solution. 2) In the server RewriteRule I'm obliged to had index.html at the end because if I don't do this I obtain the directory with all the files/directories which are in and not the file index.hml. Of course this solution is not good because if I have something like index.php or index.htm it doesn't work. I try with and without / at the end of the URL or of the Rewrite but nothing work as I want and with the solution I use the browser doesn't see the redirection as it's good for the security we need. I know, this first mail is very long, but I need help because I began to think perhaps I don't use the good solution. Thank you --+HP7ph2BbKc20aGI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE+Ixz48k5+aHCdd6IRAlQ2AJwKfAfkXsE0VnAOsD+AHZqSH34OVQCg7x9x YGMtb5CjdciuH46iHMIUg1A= =IAgw -----END PGP SIGNATURE----- --+HP7ph2BbKc20aGI--