Women in Technology

Hear us Roar



Article:
  Apache Web-Serving with Mac OS X: Part 1
Subject:   graphics don't show??
Date:   2002-03-11 18:50:09
From:   icerabbit
Hi,


Very nice article series and right what I was looking for.


I followed the instructions and replaced the basic apache index html with a page I created, that links to a couple gifs that I placed in subfolders within the document root folder for apache.


When I preview the page with BBEdit everything is fine.


When I preview through the web the graphics are not shown?


Why would this be? And how can I solve this?


I didn't find the solution in Apache documentation.


Thanks for you help,


Frank

Full Threads Oldest First

Showing messages 1 through 4 of 4.

  • Morbus Iff photo graphics don't show??
    2002-03-13 20:04:30  Morbus Iff | O'Reilly Author [View]

    More than likely, your HTML page is using absolute image links as opposed to relative image links, and thus it's getting confused when you browse it over the network/web. Take a look at the "src" of your <img> tags - what are they set for?
    • My actual IMG tag HTML info
      2002-03-17 16:05:24  icerabbit [View]


      The URLs to the files are relative to the index.html file. (not with c:/....).

      Currently there is only one image that shows and that is the apache logo in the folder manual. The others show the IE image missing placeholder/icon when browsing to index.html through the apacheserver.

      Here's a couple lines from my testfile (test.icerabbit.com)


      <img border="0" src="icons/i__ico_icerabbit_r.gif" align="left" width="19" height="18">

       <img src="icons/PoweredByMacOSX.gif" alt="" width="160" height="44">

       <img src="apache/apache_pb.gif" alt="" width="259" height="32">

      Would I need to validate the subfolders in some way?

      Thanks,
      Frank

      • Morbus Iff photo My actual IMG tag HTML info
        2002-03-19 14:19:38  Morbus Iff | O'Reilly Author [View]

        If test.icerabbit.com is your server, I don't see either the "PoweredByMacOSX.gif" OR the "i__ico_icarabbit_r.gif" in your icons folder.
        • This too weird! I have 5 different icons in that folder than the ones it lists online!!!
          2002-03-21 17:05:06  icerabbit [View]

          Thanks for visiting that page and helping me out with this.

          On my HDD, in the folder:
          osx/library/webserver/documents/icons

          I placed 5 files: 3 i_xxxxxx.gif files and 2 poweredbyxxxxx.gif

          that's all. None of the other icons shown in the online /icons are from me or for that test page. I can't even find these icons shown in that online icons folder on my hard drive! I had hoped that would give me a clue ... but it only confuses me more ... these tiny gifs from 1996 have to come from somewhere!

          So I have finder now searching for files from 02/22/96 (sigh)

          Is there any firsthand location where it would pick this from? I know these gifs are not mine and are not in the apache/webserver area on my hard drive.

          Thanks,
          Frank