Personal Web Sharing / home network / can't see images

Discussion in 'macOS' started by toddburch, Feb 27, 2008.

  1. toddburch macrumors 6502a

    Joined:
    Dec 4, 2006
    Location:
    Katy, Texas
    #1
    I've activated Personal Web Sharing (Tiger) and it seems to be working. I can go to either http://localhost/ or http://192.168.1.100/ and see the default Apache web page.

    Tacking on my username,

    http://192.168.1.100/~toddburch

    I can see the web page I created that lives in /Users/toddburch/Sites/. So far so good. I can even see it from my Windows machine.

    However, neither machines show the images that are linked via <img src> tags that reside in

    /Users/toddburch/Sites/images/....

    The Safari activity windows says "forbidden" and I get red Xs under IE on Windows.

    Per another thread I found here, I edited /etc/httpd/http.conf to change useCanonicalName from On to Off. After I edited it, I entered "sudo apachectl restart". That allowed me to see the page from Windows, which I couldn't do before the edit / restart.

    I suppose this might be something pretty basic.

    If I go into Finder and open the index.html with safari, the images, etc. show up perfect, so I don't think it's a syntax issue with my html.

    Ideas?
     
  2. TEG macrumors 604

    TEG

    Joined:
    Jan 21, 2002
    Location:
    Langley, Washington
    #2
    You need to allow the "world" or "others" read the files. File permissions are very important in the UNIX environment. You may also have to allow the files to be executed, but I'm not entirely clear on that aspece. You can either do this through the permissions in Get Info, or by navigating to the images folder in terminal then typing "chmod 755 *"

    TEG
     
  3. toddburch thread starter macrumors 6502a

    Joined:
    Dec 4, 2006
    Location:
    Katy, Texas
    #3
    I entered "chmod 755 *" and no joy. I restarted apache after that. No joy.

    Get Info shows Read & Write for me, and Read for everyone else for the /images folder.

    Todd
     
  4. TEG macrumors 604

    TEG

    Joined:
    Jan 21, 2002
    Location:
    Langley, Washington
    #4
    Not just the folder, but each image needs its own permissions. Check them. They may need to be Read & Execute.

    TEG
     
  5. toddburch thread starter macrumors 6502a

    Joined:
    Dec 4, 2006
    Location:
    Katy, Texas
    #5
    YES!! I just figured that out and came back here to post! Thank you so much! They are now read only, and I turned the Firewall on too.

    woo-hoo!

    Todd
     
  6. wakerider017 macrumors 68000

    wakerider017

    Joined:
    Sep 20, 2006
    Location:
    US of A
    #6
    Awesome!

    And if you want to share your website with the world, forward port 80 on your router and find your public ip here:http://ventrilo.com/myip.php
     

Share This Page