logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Can't see request in log
Author
Tecnofago



Joined: 12 May 2015
Posts: 4
Location: Spain

PostPosted: Tue 12 May '15 19:21    Post subject: Can't see request in log Reply with quote

Hi everybody!

I am working with XAMPP 5.6.8 (Apache 2.4.4, MySQL 5.5.32 and PHP 5.6.8 ) on a 64 bits Windows 7 Ultimate (Service Pack 1) Operating System.

I am working with an Arduino UNO and a WIFI Shield connected to the Apache server.

I am sure Arduino is connected to the WiFi network and to the server, and it also sends the GET request to the server.

Apparently, everything is OK because I can see the 200 OK message from the server in the Arduino serial monitor, but I find no trace of that request in the server log although all the requests made from the browser (by typewriting the server address in the browser address bar and pressing enter) appear in the server log.

I have been several days trying to find information about what might be happening to me and I have not been able to find solution.

Greatly appreciate any help.

Regards.
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3094
Location: Hilversum, NL, EU

PostPosted: Thu 14 May '15 9:59    Post subject: Reply with quote

Only thing I can think about is that maybe you have with the logformat excluding some.
Back to top
Tecnofago



Joined: 12 May 2015
Posts: 4
Location: Spain

PostPosted: Fri 15 May '15 14:54    Post subject: Reply with quote

Thank you for answering, Steffen!

The part of the logformat in my httpd.conf is as follows:

Code:

ErrorLog "logs/error.log"

#
# LogLevel: Control the number of messages logged to the error_log.
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
#
LogLevel warn

<IfModule log_config_module>
    #
    # The following directives define some format nicknames for use with
    # a CustomLog directive (see below).
    #
    LogFormat "%h %l %u %{%d/%b/%Y:%T}t-%{usec_frac}t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %{%d/%b/%Y:%T}t-%{usec_frac}t \"%r\" %>s %b" common

    <IfModule logio_module>
      # You need to enable mod_logio.c to use %I and %O
      LogFormat "%h %l %u %{%d/%b/%Y:%T}t-%{usec_frac}t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
    </IfModule>

    #
    # The location and format of the access logfile (Common Logfile Format).
    # If you do not define any access logfiles within a <VirtualHost>
    # container, they will be logged here.  Contrariwise, if you *do*
    # define per-<VirtualHost> access logfiles, transactions will be
    # logged therein and *not* in this file.
    #
    #CustomLog "logs/access.log" common

    #
    # If you prefer a logfile with access, agent, and referer information
    # (Combined Logfile Format) you can use the following directive.
    #
    CustomLog "logs/access.log" combined
</IfModule>


and the log is:

192.168.1.10 - - 15/May/2015:13:12:33-230468 "GET / HTTP/1.1" 304 - "http://servertemp.sytes.net/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.152 Safari/537.36"

85.53.233.5 - - 15/May/2015:13:12:34-065429 "GET / HTTP/1.1" 200 2241 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36"

Where 192.168.1.10 is the server local IP from where I launch my request (via browser).

And 85.53.233.5 is other external IP from where I have also launched another request via browser.

But it doesn't appear the Arduino local IP (192.168.1.11) in the log.
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Fri 15 May '15 19:32    Post subject: Reply with quote

Linksys router?

My old Linksys router (and probably others) will do this on loopback.

No mater what computer I used in my LAN to connect to my .com domain, it always showed up as 192.168.1.1, which was the IP of the router.

Now that it died and I did not get another Linksys, I get my external IP.
Back to top
Tecnofago



Joined: 12 May 2015
Posts: 4
Location: Spain

PostPosted: Mon 18 May '15 10:09    Post subject: Reply with quote

Thank you for posting glsmith.

My router is a Huawei one and it seems to do the same as your old Linksys.

But my real problem is not seeing the Arduino IP in the Apache log.
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3094
Location: Hilversum, NL, EU

PostPosted: Mon 18 May '15 10:55    Post subject: Reply with quote

You said: ... and it also sends the GET request to the server....

Are you absolutely sure that Arduino sends the request to the IP of your Windows 7 box ?
Back to top
Tecnofago



Joined: 12 May 2015
Posts: 4
Location: Spain

PostPosted: Mon 18 May '15 13:24    Post subject: Reply with quote

You are right Steffen,

Although apparently Arduino sends the GET request to the server (according to what I see on the Arduino serial monitor), I should check if that is really true.
Back to top


Reply to topic   Topic: Can't see request in log View previous topic :: View next topic
Post new topic   Forum Index -> Apache