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: Strange Apache Behaviour
Author
heitjer



Joined: 06 Aug 2007
Posts: 2

PostPosted: Mon 06 Aug '07 3:25    Post subject: Strange Apache Behaviour Reply with quote

1) created a simple HTM weppage (mytest.htm) with one link (to www.yahoo.com) and two pictures (greg2.jpg & bug.gif)

Code:

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<p><a href="www.yahoo.com">testing</a></p>
<p><img src="greg2.jpg" width="115" height="140"></p>
<p>&nbsp;</p>
<p><img src="bug.gif" width="100" height="75"></p>
</body>
</html>


2) placed page and pictures on the root directory of the webserver (/var/www)

3) try access file from home computers on network - no problem - page displays nicely with everything at the right place.

4) try access file from work (or anywhere on the internet) - apache serves the page and displays the link 'testing' on the page and then stalls ("2 items remaining...") while retrieving the pictures.

ERROR LOG
nothing - no entry - empty

ACCESS LOG
Code:

xxx.xxx.xxx.126 - - [04/Aug/2007:18:58:00 -0500] "GET /mytest.htm HTTP/1.1" 304 - "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; H010818; .NET CLR 1.1.4322)"
xxx.xxx.xxx.126 - - [04/Aug/2007:18:58:00 -0500] "GET /greg2.jpg HTTP/1.1" 200 9390 "http://yyy.yyy.yyy.137/mytest.htm" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; H010818; .NET CLR 1.1.4322)"
xxx.xxx.xxx.126 - - [04/Aug/2007:18:58:00 -0500] "GET /bug.gif HTTP/1.1" 200 2666 "http://yyy.yyy.yyy.137/mytest.htm" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; H010818; .NET CLR 1.1.4322)"


Checking user group:
Quote:

/var/www# ls -ld

gives me
Quote:

drwxrwxr-x 26 www-data www-data 4096 2007-08-04 17:59

All files in question do have 0755 permission set. I also had shared the /var/www directory from Samba but took this out as Samba handles different access control. So no interference from Samba and still not access to pictures.

I also read something about MIME extension and added in Webmin the type "image/jpeg" and extension".jpg" in hope to produce the jpg image. No success.

I am clueless.......

Some thoughts from ya'lls side are extremly welcome!
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Mon 06 Aug '07 13:42    Post subject: Reply with quote

The HTTP/1.1" 200 shows that apache delivered the pictures.
So you should see the picture. Tried a different borwser? Can you access the pictures directly? like http://_YOUR_IP_/grep2.jpg?

Is your mytest.htm also in the document root /var/www ?
Is /var/www the doc_root? OFr many distros there is /var/www/htdocs
Back to top
heitjer



Joined: 06 Aug 2007
Posts: 2

PostPosted: Wed 08 Aug '07 3:41    Post subject: Reply with quote

Thanks for the tip - great idea...

Sorry - but no display of the jpg this way!

With regards to the doc root - yes the /var/www is root where the mytest.htm resides. This is also the place where the Apache folder did reside.
Back to top


Reply to topic   Topic: Strange Apache Behaviour View previous topic :: View next topic
Post new topic   Forum Index -> Apache