httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pascal Brugier <pbrug...@easter-eggs.com>
Subject Re: [users@httpd] ProxyPass Logs and index
Date Tue, 14 Jan 2003 21:59:53 GMT
Hello


I find 2 solutions:

1) for the index.html with RewriteRule and the bug i'll use
   RewriteRule ^/(.*)\.easter-eggs\.fr$ /var/www/$1/index.html
   and make a simlink index.html -> index.something, this is
   possible in the website I've to admin.

2) for the logs I use a dirty solution, but it works:

a) on the Apache proxypass
	
   RewriteRule ^/$http://10.0.0.67/%{HTTP_HOST}/%{REMOTE_ADDR} [P]
	
b) on the Apache server:

    LogFormat "%{REMOTE_CLIENT}e %l %u %t \"%r\" %>s %b\"%{Referer}i\" \
    \"%{User-Agent}i\" %T %v"proxy
    
    RewriteRule ^/(.*)\.easter-eggs\.fr/(.*)$/var/www/$1/index.html \
    [E=REMOTE_CLIENT:$2]

    CustomLog /var/log/apache/proxy.easter-eggs.fr-access.log \
    proxy
    
    And I have the REAL_REMOTE_ADDR in the log, it's a solution,
    but not a GOOD solution :-(


This give a question, isn't possible to pass an env variable
from the Apache proxypass to the Apache server, which give
information about the client(IP Browser ADDR ....) ?


Thank you

Pascal

On Tue, Jan 14, 2003 at 10:04:37AM +0100, Pascal Brugier wrote:
> On Mon, Jan 13, 2003 at 07:45:56PM -0500, Mike Cramer wrote:
> > Pascal Brugier wrote:
> > >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.
> > 
> > The latest attachment to this bug fixes the problem, if you are willing 
> > to build apache from source.
> > 
> > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14648
> 
> Hello, I'll thank you for your answer.
> I'll try to find a solution to avoid this problem, cause I
> really need this feature.
> 
> Pascal
> 


Mime
View raw message