Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Apache Log IP Via

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
Apache og ASP ? - Hello Can anyone here explain to me, if it is in Apache .conf file or somewhere in Sun One ASP I should configure the so my users cannot see anything but there own directory on the Apache server ? The situation is as

apache 2 and php on mac - what lines do i need in the httpd and what files or other do i need to get it in. macosx 10.3.5 and have switched to a fink so that may involve some heavy dancing. jimt

ASP.Net under Apache - Is there a module for Apache that allows the running of ASP.Net? Perhaps uses Mono?

apache not doing any PHP. - Hi I'm running Apache 1.3 with mod_php4 on a suse 9.0 box. However when a client tries to open a the file download dialog opens instead of showing the contents of the page. The PHP Module seems to be loaded my has the..

using ssl on Apache 2 - Hi I new with secure apache server I have read a lot of papers and the more I read the more confuse I get. Is there any paper on how to secure a Apache server on Suse9. Or has onyone done it please send there notes about it. I have read about using..
Author Message
enz_tn2002

External


Since: Sep 16, 2004
Posts: 1



(Msg. 1) Posted: Thu Sep 16, 2004 4:45 pm
Post subject: Apache Log IP Via
Archived from groups: alt>apache>configuration (more info?)

Hi to all,

i have an apache external and more apache internal. On external Apache
I set more VirtualHost and with mod_proxy talk with all internal
apache.
For example:

ProxyRequests On
ProxyPass / http://192.168.0.1/
ProxyPassReverse / http://192.168.0.1/

But I have a problem with log. I would like which every internal
apache keep it log, with IP external and not with a IP of external
Apache.

Example:

Apache Ext.
192.168.0.1 Apache1 Int 192.168.0.2
__ __
| |----------------|-----| |
|__| | |__|
| __
|-----| | Apache2 Int 192.168.0.3
|__|

On Internal Apache1 and Apache2 in the log I have always 192.168.0.1
as request but on external Apache I have the real IP of internet. Can
I take it from header Via and put it in the log of internal Apache?

Thanks for help.

Andrew

 >> Stay informed about: Apache Log IP Via 
Back to top
Login to vote
user614

External


Since: Oct 01, 2004
Posts: 117



(Msg. 2) Posted: Fri Sep 17, 2004 1:20 pm
Post subject: Re: Apache Log IP Via [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

no this can't be done from what I've been reading, however I seem to =
recall someone was going to try and get this to work but never heard =
anything back


"Andrew" <enz_tn2002.DeleteThis@yahoo.com> wrote in message =
news:5106c9db.0409161245.12514f6a@posting.google.com...
 > Hi to all,
 >=20
 > i have an apache external and more apache internal. On external Apache
 > I set more VirtualHost and with mod_proxy talk with all internal
 > apache.
 > For example:
 >=20
 > ProxyRequests On
<font color=purple> > ProxyPass / <a style='text-decoration: underline;' href="http://192.168.0.1/</font" target="_blank">http://192.168.0.1/</font</a>>
<font color=purple> > ProxyPassReverse / <a style='text-decoration: underline;' href="http://192.168.0.1/</font" target="_blank">http://192.168.0.1/</font</a>>
 >=20
 > But I have a problem with log. I would like which every internal
 > apache keep it log, with IP external and not with a IP of external
 > Apache.
 >=20
 > Example:
 >=20
 > Apache Ext.
 > 192.168.0.1 Apache1 Int 192.168.0.2
 > __ __
 > | |----------------|-----| |
 > |__| | |__|
 > | __
 > |-----| | Apache2 Int 192.168.0.3
 > |__|
 >=20
 > On Internal Apache1 and Apache2 in the log I have always 192.168.0.1
 > as request but on external Apache I have the real IP of internet. Can
 > I take it from header Via and put it in the log of internal Apache?
 >=20
 > Thanks for help.
 >=20
 > Andrew<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Apache Log IP Via 
Back to top
Login to vote
mnewsnospam

External


Since: Aug 13, 2004
Posts: 3



(Msg. 3) Posted: Fri Sep 17, 2004 4:40 pm
Post subject: Re: Apache Log IP Via [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Andrew wrote:
 > Hi to all,
 >
 > i have an apache external and more apache internal. On external Apache
 > I set more VirtualHost and with mod_proxy talk with all internal
 > apache.
 >
 > On Internal Apache1 and Apache2 in the log I have always 192.168.0.1
 > as request but on external Apache I have the real IP of internet. Can
 > I take it from header Via and put it in the log of internal Apache?

Dunno if it can help, but have you tried one of these? (taken from
<a style='text-decoration: underline;' href="http://httpd.apache.org/docs/mod/mod_log_config.html#formats" target="_blank">http://httpd.apache.org/docs/mod/mod_log_config.html#formats</a>)
%...{Foobar}i: The contents of Foobar: header line(s) in the request sent
to the server.
%...{Foobar}o: The contents of Foobar: header line(s) in the reply.

--
MVH Jeppe Uhd - NX <a style='text-decoration: underline;' href="http://nx.dk" target="_blank">http://nx.dk</a>
Webhosting for nørder og andet godtfolk<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache Log IP Via 
Back to top
Login to vote
nessun

External


Since: Sep 20, 2004
Posts: 1



(Msg. 4) Posted: Mon Sep 20, 2004 12:18 pm
Post subject: Re: Apache Log IP Via [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Andrew wrote:

 > Hi to all,
 >
 > i have an apache external and more apache internal. On external Apache
 > I set more VirtualHost and with mod_proxy talk with all internal
 > apache.
 >
 > On Internal Apache1 and Apache2 in the log I have always 192.168.0.1
 > as request but on external Apache I have the real IP of internet. Can
 > I take it from header Via and put it in the log of internal Apache?

Ok, I resolved in this way:

CustomLog /var/log/apache/access_log combined_external

LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\"" combined_external

Thanks to all, for help

Andrew.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Apache Log IP Via 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]