Re: apache fails to show jpg and not find files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Krist van Besien wrote:
> 
> On Wed, Apr 8, 2009 at 5:32 AM, deh <dhaselwood@xxxxxxxxxxx> wrote:
>>
>> I wanted to setup my web pages that are on verizon.net on my local
>> network
>> with a machine running Suse 11.1/apache2.  I downloaded the web pages
>> with
>> 'wget -a -k' into a directory and set the directory/root and directory
>> for
>> the apache .conf file to the directory holding 'index.html' in the
>> downloaded directories and set the permissions.  When the server is
>> accessed, the web page text presents, but there are only boxes for the
>> .jpg,
>> .jpeg files and the one case where there is a file to be downloaded it
>> shows
>> "Object not Found, Error 404".
>>
>> If I access 'index.html' from the browser (Konqueror) on the server
>> machine
>> everything is correct, so it looks like the paths to the files are being
>> handled differently with apache than the browser.
>>
>> I'm new at this and need so direction as to where to look.
> 
> In your case it is probly the -k option to wget that is the problem.
> This option tells wget to convert all hyperlinks so that they are
> suitable for local viewing. This is why you can see your site in
> konqueror.
> In order to mirror your site locally just get all the html files using
> a file transfer client, so that you get exactly the same as on your
> server.
> 
> If you are still experiencing 404 errors afterwards the way to start
> solving these is to look in the error log. If you don't understand
> what you see there, you can come back here and ask us :-)
> 
> Krist
> 
> -- 
> krist.vanbesien@xxxxxxxxx
> krist@xxxxxxxxxxxxx
> Bremgarten b. Bern, Switzerland
> --
> A: It reverses the normal flow of conversation.
> Q: What's wrong with top-posting?
> A: Top-posting.
> Q: What's the biggest scourge on plain text email discussions?
> 
> ---------------------------------------------------------------------
> 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@xxxxxxxxxxxxxxxx
>    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
> 
> 

Krist,

Thanks for the response.  

Dropping the '-k' option didn't fix the problem.  Here is a snip of
error_log output as well as a look at the html file.  At the moment it looks
like apache2 is truncating the path/file name.
error_log
Using webpage downloaded with wget -r
[Wed Apr 08 12:32:23 2009] [error] [client 10.143.15.6] File does not exist:
/home/deh/webpage/mysite.verizon.net/res7yvp2/w4dh22/imagelib, referer:
http://10.143.15.1:41574/
[Wed Apr 08 12:32:25 2009] [error] [client 10.143.15.6] File does not exist:
/home/deh/webpage/mysite.verizon.net/res7yvp2/w4dh22/imagelib, referer:
http://10.143.15.1:41574/
[Wed Apr 08 12:32:25 2009] [error] [client 10.143.15.6] File does not exist:
/home/deh/webpage/mysite.verizon.net/res7yvp2/w4dh22/sitebuildercontent,
referer: http://10.143.15.1:41574/
[Wed Apr 08 12:32:26 2009] [error] [client 10.143.15.6] File does not exist:
/home/deh/webpage/mysite.verizon.net/res7yvp2/w4dh22/favicon.ico, referer:
http://10.143.15.1:41574/

error_log using webpage downloaded with wget -r -k
[Wed Apr 08 13:25:24 2009] [error] [client 10.143.15.6] File does not exist:
/home/deh/webpage/mysite.verizon.net/res7yvp2/w4dh22/imagelib, referer:
http://10.143.15.1:41574/
[Wed Apr 08 13:25:31 2009] [error] [client 10.143.15.6] File does not exist:
/home/deh/webpage/mysite.verizon.net/res7yvp2/w4dh22/imagelib, referer:
http://10.143.15.1:41574/
[Wed Apr 08 13:25:31 2009] [error] [client 10.143.15.6] File does not exist:
/home/deh/webpage/mysite.verizon.net/res7yvp2/w4dh22/sitebuildercontent,
referer: http://10.143.15.1:41574/
[Wed Apr 08 13:25:39 2009] [error] [client 10.143.15.6] File does not exist:
/home/deh/webpage/mysite.verizon.net/res7yvp2/w4dh22/sitebuildercontent,
referer: http://10.143.15.1:41574/

The problem is that these only have a partial path, and no file name.

Line from file--
~/webpage/mysite.verizon.net/res7yvp2/w4dh22/index.html
in the web page downloaded with--
wget -r
[I changed "<" to "#" since with "<" Preview Message didn't show the
path/file]
<td width="5">#img src="/imagelib/sitebuilder/layout/spacer.gif" width="1"
height="1" alt=""><br></td>

Same line as foregoing from web page
downloaded with wget -r -k
<td width="5">#img src="../../imagelib/sitebuilder/layout/spacer.gif"
width="1" height="1" alt=""><br></td>

The latter path/file is correct, as the imagelib is up two levels from the
directory holding index.html
For example, this is what I it should be--
/home/deh/webpage/mysite.verizon.net/imagelib/sitebuilder/layout/spacer.gif

Conclusion:
1) The '-k' option in 'wget' stores the correct path with respect to the
index.html (DirectoryRoot) path.
2) Neither works correctly with apache
3) In the error_log, the file name is missing and the path is incomplete

Could it be that the path is simply too long?

Don


-- 
View this message in context: http://www.nabble.com/apache-fails-to-show-jpg-and-not-find-files-tp22942391p22956131.html
Sent from the Apache HTTP Server - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux