Re: [users@httpd] ProxyRequest and Log file!

2005-06-04 Thread Joshua Slive
On 6/4/05, david joffrin <[EMAIL PROTECTED]> wrote:
> ProxyRequests On

You do NOT want ProxyRequests on for a reverse proxy.  This is a major
security hole.  See the mod_proxy documentation.

> However, I have a little issue with the log file
> Before the proxy, I had the following line:
> 127.0.0.1 - - [01/May/2005:21:05:29 +0100] "GET / HTTP/1.1" 200 8201
> "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
> After the proxy, I have the following line:
> 218.5.84.204 - - [02/Jun/2005:21:30:58 +0100] "GET / HTTP/1.1" 302 -
> "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
> The return size is '-'! The issue is that web stats (awstats) is relying on
> the returned sized?
> 
> Any idea why the returned size is now set to '-'

The status code on that request is 302, which is a redirect.  So the
client got redirected, they didn't get a regular response.

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[users@httpd] ProxyRequest and Log file!

2005-06-04 Thread david joffrin

Hi,

I have a virtual host that does proxy to a JBOSS instance, the configuration 
is as follow:


ServerName www.bidnplay.com
ServerAdmin [EMAIL PROTECTED]
SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
SetEnvIf Remote_Addr "192\.168\.2\.*" dontlog
SetEnvIf Remote_Addr "213\.219\.9\.70" dontlog
SetEnvIf Remote_Addr "139\.149\.1\.211" dontlog
CustomLog logs/access-bidnplay.log combined env=!dontlog
ProxyRequests On
http://www.bidnplay.com>
Order deny,allow
Allow from 192.168.2.1
Allow from all

ProxyPass /sudetp http://www.bidnplay.com:8080/sudetp/
ProxyPass / http://www.bidnplay.com:8080/sudetp/
ProxyPassReverse / http://www.bidnplay.com:8080/sudetp/


However, I have a little issue with the log file
Before the proxy, I had the following line:
127.0.0.1 - - [01/May/2005:21:05:29 +0100] "GET / HTTP/1.1" 200 8201 
"-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"

After the proxy, I have the following line:
218.5.84.204 - - [02/Jun/2005:21:30:58 +0100] "GET / HTTP/1.1" 302 - 
"-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)"
The return size is '-'! The issue is that web stats (awstats) is relying on 
the returned sized?


Any idea why the returned size is now set to '-'

Thanks.
DvJ



-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]