You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Charlie Davis <cd...@2wire.com> on 2006/06/29 19:32:44 UTC

[users@httpd] Remote log files?

Hey all,
Is there anyway to setup apache 1.3.6 to send its log files to a remote
server? Info to point me in the right direction would be fine. Google
has been no help. :|

Charlie Davis
WebMaster
2Wire, Inc. 

cdavis@2Wire.com
www.2Wire.com

2Wire, Inc. Company Confidential. The information contained in this
message may be privileged and/or confidential. If the reader of this
message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, you
are hereby notified that any dissemination, distribution or copying of
this communication is strictly prohibited. If you have received this
communication in error, please notify us immediately by replying to the
message and deleting it from your computer.



---------------------------------------------------------------------
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] Remote log files?

Posted by Joshua Slive <jo...@slive.ca>.
On 6/29/06, Charlie Davis <cd...@2wire.com> wrote:
> Hey all,
> Is there anyway to setup apache 1.3.6 to send its log files to a remote
> server? Info to point me in the right direction would be fine. Google
> has been no help. :|

1.3.6 is ancient and has several known security holes.  Upgrading
should be your first task.

There are several third-party modules that can be used to log to
remote servers over various sorts of protocols like mod_log_spread and
mod_log_sql.  Alternatively, you can use the piped-logging feature to
send your logs to an arbitrary program which can then distribute them
as it sees fit.

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


[users@httpd] Using Apache as Proxy

Posted by Ma...@ssb.it.
Hello everyone!
I've an application on my internal network  that needs to access a public 
server on internet network.
I would like that this client could reach that server using an apache http 
server configured as proxy.

That apache server is listening on port 443 and on port 80.

I've set in my java client configuration the following directives:

-Dhttps.proxyHost=xxx.xxx.xxx.xxx
-Dhttps.proxyPort=80

This is the configuration from my apache httpd.conf:
ProxyRequests On
 AllowCONNECT 80 443
<Proxy *>
  Order deny,allow
  Allow from xxx.xxx.xxx.165
</Proxy>

Where xxx.xxx.xxx.165 is the address of my client application.

This is the configuration ffrom my apache ssl.conf
ProxyRequests On
AllowCONNECT 80 443
<Proxy *>
  Order deny,allow
  Allow from 192.168.77.165
</Proxy>

But when I try to use my proxy I get the following in my webserver log:
Jul  3 16:05:21 li3watp0 httpd[18504]: [info] [client xxx.xxx.xxx.165] SSL 
library error 1 in handshake (server atmweb-test.ssb.it:443)
Jul  3 16:05:21 li3watp0 httpd[18504]: [info] SSL Library Error: 336027803 
error:1407609B:SSL routines:SSL23_GET_CLIENT_HELLO:https proxy request 
speaking HTTP to HTTPS port!?
Jul  3 16:05:21 li3watp0 httpd[18504]: [info] [client xxx.xxx.xxx.165] 
Connection closed to child 3 with abortive shutdown (server 
atmweb-test.ssb.it:443)

I get the same if I change 
-Dhttps.proxyHost=xxx.xxx.xxx.xxx
-Dhttps.proxyPort=443


If I try using 
-Dhttp.proxyHost=xxx.xxx.xxx.xxx
-Dhttp.proxyPort=80

from my application everything is OK!


Any ideas?
Can you help me???
Please let me know.

Thanks in advance
manuciao


Re: [users@httpd] Remote log files?

Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
On 30.06.06 18:12, Khai Doan wrote:
> For me, I wrote a simple script send_apache_log.pl, which read apache log 
> files, print it to STDOUT, remember where it left off by writing to a file 
> in /tmp.

there is program "since" that can do the same.

>  I install this on the servers.  Then on my other workstation, I 
> have another script collect_apache_log.pl, which run periodically via cron, 
> that invoke the remote script via passwordless-ssh.  I am not a security 
> expert, but this seems to be better than using syslog utility.

We use syslog for remote logging (not only apache logs). We have "tail -f"
running over logfiles, that sends its output to remote syslog machine via
"logger" program which sends it to syslog. (I know this is not the most
reliable or effective way, but currently we don't have anything better).

Another way is sending logfiles directly via pipe to logger program, apache
can do this.

And I was still talking about syslog ;-)

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Depression is merely anger without enthusiasm. 

---------------------------------------------------------------------
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] Remote log files?

Posted by Khai Doan <kh...@hotmail.com>.
For me, I wrote a simple script send_apache_log.pl, which read apache log 
files, print it to STDOUT, remember where it left off by writing to a file 
in /tmp.  I install this on the servers.  Then on my other workstation, I 
have another script collect_apache_log.pl, which run periodically via cron, 
that invoke the remote script via passwordless-ssh.  I am not a security 
expert, but this seems to be better than using syslog utility.

Khai


>From: "Charlie Davis" <cd...@2wire.com>
>Reply-To: users@httpd.apache.org
>To: <us...@httpd.apache.org>
>Subject: [users@httpd] Remote log files?
>Date: Thu, 29 Jun 2006 10:32:44 -0700
>
>Hey all,
>Is there anyway to setup apache 1.3.6 to send its log files to a remote
>server? Info to point me in the right direction would be fine. Google
>has been no help. :|
>
>Charlie Davis
>WebMaster
>2Wire, Inc.
>
>cdavis@2Wire.com
>www.2Wire.com
>
>2Wire, Inc. Company Confidential. The information contained in this
>message may be privileged and/or confidential. If the reader of this
>message is not the intended recipient, or an employee or agent
>responsible for delivering this message to the intended recipient, you
>are hereby notified that any dissemination, distribution or copying of
>this communication is strictly prohibited. If you have received this
>communication in error, please notify us immediately by replying to the
>message and deleting it from your computer.
>
>
>
>---------------------------------------------------------------------
>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
>



---------------------------------------------------------------------
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