httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harish Sundaram" <harish.sunda...@patni.com>
Subject RE: [users@httpd] IP Address Problem...
Date Wed, 01 Jun 2005 08:04:00 GMT
Hi Robert,

Thanks for the suggestion...
By changing the "Listen" directive in httpd.conf, I was able to print the
host IP correctly (i.e. instead of printing the local host as "::", now the
correct IPv4 address in printed in the format "255.255.255.255")
However, the remote IP is always printed as 0.0.0.0.

Now, this isn't of much use as in the access_log file, it's important to
know which remote machine tried to access the server.

Can't we get this right too?

Thanks and Regards,
Harish.

-----Original Message-----
From: Robert Zagarello [mailto:bzag0@yahoo.com]
Sent: Wednesday, June 01, 2005 10:36 AM
To: Apache Users
Subject: RE: [users@httpd] IP Address Problem...



Harish,

If you can't find the solution you can force Apache to
listen to IPv4 only, in httpd.conf (or httpd.cnf
depending on the OS), perhaps only to see if the error
report goes away:

#
# Listen: Allows you to bind Apache to specific IP
#   addresses and/or ports, instead of the default.
#   See also the <VirtualHost> directive.
#
# Change this to Listen on specific IP addresses as
#   shown below to prevent Apache from glomming onto
#   all bound IP addresses (0.0.0.0)
#
# IPv4
#
#Listen 0.0.0.0:80
#Listen 12.34.56.78:80
#
# IPv6
#
#Listen [::]:80
#
Listen 192.168.1.100:80

BZAG
===============================================

--- Harish Sundaram <harish.sundaram@patni.com> wrote:

> Hi,
>
> If it has to do with IPv6 vs. IPv4, then what
> exactly is the solution to the
> "::" problem?
> I checked out printing of localhost as well as
> remote host. Both get printed
> as "::" only!
>
> Is there any workaround to this to get the address
> printed in
> 255.255.255.255 format ?
> And if I have to print the IPV6 address correctly
> (::ffff:255.255.255.255
> types..) what do I need to do?
>
> Thanks and Regards,
> Harish.
>
> -----Original Message-----
> From: Robert Zagarello [mailto:bzag0@yahoo.com]
> Sent: Tuesday, May 31, 2005 8:07 PM
> To: Apache Users
> Subject: Re: [users@httpd] IP Address Problem...
>
>
>
> The last time I saw double colons it had to do with
> IPv6 vs. IPv4.  Just a thought.
>
> BZAG
> ==================
>
> --- Harish Sundaram <harish.sundaram@patni.com>
> wrote:
>
> > Hi,
> >
> > I am running Apache 2.0.53 on HP-UX Itanium
> machine
> > and I'm facing this
> > peculiar problem with the Server Access log. For
> any
> > request, the IP address
> > is not properly printed in the log. I am getting
> > entries such as:
> >
> > +++++++++++++++++++++++++++++++++
> > :: - - [26/May/2005:14:52:50 +0530] "GET
> /index.html
> > HTTP/1.1" 404 294
> > :: - - [26/May/2005:14:52:51 +0530] "GET
> /index.html
> > HTTP/1.1" 404 294
> > +++++++++++++++++++++++++++++++++
> >
> > i.e. instead of printing the IP address of the
> > remote host, I only get "::".
> > I checked out the LogFormat directive in
> httpd.conf.
> > The LogFormat has the
> > option "%a" which prints the IP address of the
> > remote host.
> >
> > What else could be the problem?
> >
> > Thanks,
> > Harish.
> >
> >
> >
> > http://www.patni.com
> > World-Wide Partnerships. World-Class Solutions.
> >
>
_____________________________________________________________________
> >
> > This e-mail message may contain proprietary,
> > confidential or legally
> > privileged information for the sole use of the
> > person or entity to
> > whom this message was originally addressed. Any
> > review, e-transmission
> > dissemination or other use of or taking of any
> > action in reliance upon
> > this information by persons or entities other than
> > the intended
> > recipient is prohibited. If you have received this
> > e-mail in error
> > kindly delete  this e-mail from your records. If
> it
> > appears that this
> > mail has been forwarded to you without proper
> > authority, please notify
> > us immediately at netadmin@patni.com and delete
> this
> > mail.
> >
>
_____________________________________________________________________
> >
> > >
>
---------------------------------------------------------------------
> > 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
>
>
>
> http://www.patni.com
> World-Wide Partnerships. World-Class Solutions.
>
_____________________________________________________________________
>
> This e-mail message may contain proprietary,
> confidential or legally
> privileged information for the sole use of the
> person or entity to
> whom this message was originally addressed. Any
> review, e-transmission
> dissemination or other use of or taking of any
> action in reliance upon
> this information by persons or entities other than
> the intended
> recipient is prohibited. If you have received this
> e-mail in error
> kindly delete  this e-mail from your records. If it
> appears that this
> mail has been forwarded to you without proper
> authority, please notify
> us immediately at netadmin@patni.com and delete this
> mail.
>
_____________________________________________________________________
>
> >
---------------------------------------------------------------------
> 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



http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
_____________________________________________________________________

This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to
whom this message was originally addressed. Any review, e-transmission
dissemination or other use of or taking of any action in reliance upon
this information by persons or entities other than the intended
recipient is prohibited. If you have received this e-mail in error
kindly delete  this e-mail from your records. If it appears that this
mail has been forwarded to you without proper authority, please notify
us immediately at netadmin@patni.com and delete this mail. 
_____________________________________________________________________


Mime
View raw message