You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by david joffrin <da...@hotmail.com> on 2005/06/04 12:23:08 UTC
[users@httpd] ProxyRequest and Log file!
Hi,
I have a virtual host that does proxy to a JBOSS instance, the configuration
is as follow:
<VirtualHost *:80>
ServerName www.bidnplay.com
ServerAdmin admin@bidnplay.com
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
<Proxy http://www.bidnplay.com>
Order deny,allow
Allow from 192.168.2.1
Allow from all
</Proxy>
ProxyPass /sudetp http://www.bidnplay.com:8080/sudetp/
ProxyPass / http://www.bidnplay.com:8080/sudetp/
ProxyPassReverse / http://www.bidnplay.com:8080/sudetp/
</VirtualHost>
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 <URL:http://httpd.apache.org/userslist.html> 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
Re: [users@httpd] ProxyRequest and Log file!
Posted by Joshua Slive <js...@gmail.com>.
On 6/4/05, david joffrin <da...@hotmail.com> 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 <URL:http://httpd.apache.org/userslist.html> 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