Forum Moderators: mack

Message Too Old, No Replies

Setting up a simple web server

         

bokfok

11:58 am on Sep 28, 2005 (gmt 0)

10+ Year Member



Hi all,

Even though I am an IT professional, I am totally new to web servers and web development.

I am currently trying to set up a very simple web server on a desktop I have. The idea is to provide access to some static html web pages via this web server to family and friends abroad (the machine the server runs on is always on).

I'm currently using a free dns service (dynu) to point a URL (provided by this service) to my dynamic ISP IP address. This seems to work fine, no problems.

The thing I do seem to have a problem with is the web server. Now, I believe I have set up everything as required - the static html pages have been coded (only 2 of them at the moment) and set at the location as required by the web servers. I have tried both Abyss Web Server as well as IIS (Microsoft) without getting the server to work properly - seems that it is responding to inbound GET HTTP requests, but for whatever reason, it does not seem to be reaching the requestor!

When I run a packet capture (using LANView), it would seem the requestor keeps on re-requesting the html pages (via GET calls) even though the server seem to be responding. I have discarded IIS as an option for the time being as it seems to be somewhat involved especially for a newcomer to web servers like myself.

The web server is running on a machine that sits behind a WiFi router as well as a firewall, but I have configured port forwarding on the router and have added rules to the firewall to allow traffic through to this machine (even tried with firewall on the server machine turned off with the same results).

Are there any tips/recommendations anybody can provide as to where I can start looking? Any basic steps/configurations to go through when setting up a web server. The Abyss Web Server does not seem overly complicated so can't understand what the problem may be currently...

bokfok

12:32 am on Sep 29, 2005 (gmt 0)

10+ Year Member



Here is one of the log files I captured (has format "Time,Protocol,srcIP,srcPort,dstIP,dstPort,Size,Comments"):

22:45:02,TCP,203.219.147.166,11050,192.168.1.2,80,8,Inbound packet containing "020405B401010402"
22:45:02,TCP,192.168.1.2,80,203.219.147.166,11050,8,Outbound packet containing "020405B401010402"
22:45:03,TCP,203.219.147.166,11050,192.168.1.2,80,0,Zero length packet
22:45:03,TCP,203.219.147.166,11050,192.168.1.2,80,448,GET HTTP1.1 request
22:45:03,TCP,192.168.1.2,80,203.219.147.166,11050,253,HTTP OK 200 response (no page details included)
22:45:03,TCP,192.168.1.2,80,203.219.147.166,11050,1460,Static HTML page returned (part 1)
22:45:03,TCP,192.168.1.2,80,203.219.147.166,11050,249,Static HTML page returned (part 2)
22:45:03,TCP,203.219.147.166,11050,192.168.1.2,80,12,Inbound packet containing "0101050AF96AB61CF96AB715"
22:45:06,TCP,192.168.1.2,80,203.219.147.166,11050,1460,Static HTML page returned (part 1) - resent?
22:45:11,TCP,192.168.1.2,80,203.219.147.166,11050,1460,Static HTML page returned (part 1) - resent?
22:45:22,TCP,192.168.1.2,80,203.219.147.166,11050,1460,Static HTML page returned (part 1) - resent?
22:45:44,TCP,192.168.1.2,80,203.219.147.166,11050,1460,Static HTML page returned (part 1) - resent?
22:46:27,TCP,192.168.1.2,80,203.219.147.166,11050,1460,Static HTML page returned (part 1) - resent?
22:46:44,TCP,203.219.147.166,11050,192.168.1.2,80,0,Zero length packet

Webserver replied within 1 second to the GET request, so don't understand why all the additional traffic then? GET reply also did not reach the client.