You asked for "directions" so... here are mine.
In your two transcripts I saw, in the first one, this:
[...]
Server: Apache
[...]
and in the second one, this:
[...]
Server: Apache/2.4.6 (CentOS) PHP/5.6.24
[...]
Even tough those are two different HTTP response (302 Found
the first; 200 OK
the second), I bet that those two responses are coming from different web servers. So let's try to investigate such an hypothesis...
As a first step, as already mentioned in the @HBruijn comments, we need to ensure that both HTTP clients are opening the HTTP connection towards the same HTTP server. On each of them, please, run:
ping service-name.domain.tld
and ensure that in the output you're seeing the same IP address. If not, let's stop here and... is up to you to step forward on a different issue :-)
If both ping
resolve to the same IP address, than the troubleshooting process is really different, based on the "relative" location of the three hosts: are "Client A" and "Client B" connected to the same Ethernet LAN/segment? is "Server C" connected to the same Ethernet LAN/segment?
If the three machines are connected to the same LAN, than something to check could be the MAC address that both "Client A" and "Client B" gets from the ARP resolution of the "Server C" IP address. Right after the PING (on "Client A" and "Client B" versus "Server C"), runs (on both "Client A" and "Client B") an arp -an <ip.of.server.c>
. You'll get something like:
verzulli@iMac-Chiara:~$ ping 192.168.2.1
PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
[...]
verzulli@iMac-Chiara:~$ arp -an 192.168.2.1
? (192.168.2.1) associato a c0:c1:c0:e8:0f:12 [ether] su wlan0
verzulli@iMac-Chiara:~$
Here above you see that the MAC address of my "server" (192.168.2.1) is c0:c1:c0:e8:0f:12
. In your case, ensure it's the same, for both "Client A" and "Client B". Again, please note that this is valid only if Client A and Client B are in the same ethernet segment of Server C.
If "Client A" and "Client B" are on different networks and/or "Server C" is far from them, then our only chance is to check what's coming to "Server C" when both "Client A" and "Client B" try to reach it. Unfortunately, here also we have a different approach depending on the relative location of the three hosts. Let's suppose the worst-case scenario: "Client A" and "Client B" connected to two different LANs (maybe two remote sites of a big-company) and "Server C" is connected to a third site (big-company headquarter). Both "Client A" and "Client B" are NATted, when reaching "Server C".
In such a case, we need to discover the "public" IP address assigned to "Client A" and "Client B" when reaching "Server C".
There are plenty of ways to get this info. As a quick (...and very dirty) way to get result, you can launch:
verzulli@iMac-Chiara:~$ curl -s http://ipinfo.io | grep '"ip":'
"ip": "2.239.77.181",
where you can see that my NAT-address (assigned by my provider to my host when leaving its network) is 2.239.77.181
.
So, now, I can finally ask "Server C" to show me the traffic coming from my IP and.... just watch if something is really coming into.
On the server:
[root@srv-01 ~]# tcpdump -n -i eth0 host 2.239.77.181 and icmp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
it will.... start waiting, for incoming icmp (ping) packets coming from 2.239.77.181.
As soon as I, from the client, will PING, such packets will be shown:
[root@srv-01 ~]# tcpdump -n -i eth0 host 2.239.77.181 and icmp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
16:28:21.031355 IP 2.239.77.181 > 78.47.127.152: ICMP echo request, id 60237, seq 1, length 64
16:28:21.031392 IP 78.47.127.152 > 2.239.77.181: ICMP echo reply, id 60237, seq 1, length 64
where you can see the PING (icmp echo request) coming from my client and, righafter, the reply from the server (icmp echo reply).
Should you prefer to check for every kind of traffic (and not only ICMP), you could try (on "Server C") with a:
tcpdump -n -i eth0 host 2.239.77.181
of, if you only want to check for HTTP traffic:
tcpdump -n -i eth0 host 2.239.77.181 and port 80
That's all.
Based on the above, you should be able to check if both "Client A" and "Client B" are reaching your "Server C" (and not two different web servers). Once got this info, get back here confirming this and... I could update this answer to step over.
Best Answer
You can check the log in Xampp->apache->logs->access.log file . Open your accees.log file in any code editor or notepad then you see the realtime log.