Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

toddburch

macrumors 6502a
Original poster
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?
 
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
 
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
 
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

Not just the folder, but each image needs its own permissions. Check them. They may need to be Read & Execute.

TEG
 
Not just the folder, but each image needs its own permissions. Check them. They may need to be Read & Execute.

TEG

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
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.