Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
You are too kind...I only knew about it not because of my experience with Macs (actually, this is the very first time I've messed around with a Mac as a web server at all), but because I've setup so many Linux servers.

Just a few minutes ago, I activated Personal Web Sharing on my iMac and tried to access it via IP on my MacBook. I ran into the same problem, and changing the UseCanonicalName setting worked. So it appears it is set this way by default, but a lot of people don't notice it I imagine because they only use the web server from their local computer for development. It doesn't seem right though, because the whole point of the Personal Web Sharing option is to allow others on your network to access your web sites. Odd.

From a perusal of httpd.conf, it looks like having a site at your computer's root address would involve placing the files in /Library/Webserver/Documents. Optionally, you could (and be careful with this -- make sure you type the path correctly) delete the Documents directory in /Library/Webserver (using the command

Code:
[B]sudo rm -rf /Library/Webserver/Documents[/B]

-- you don't need anything that's in that directory by default) and then create a symlink to your Sites directory using the command

Code:
[B]ln -s /Users/talsma/Sites /Library/Webserver/Documents[/B]

This will place a symbolic link at /Library/WebServer/Documents that will in reality be reading from your Sites directory.

As far as learning shell (terminal) commands...that's just something I've picked up from years of having a Linux file server.


You are very modest.

Thank you for sharing your wealth of knowledge and making it so easy for me to fix what seemed like a complex problem.

You are a true asset to this online community :D
 
Hi, I'm having a similar problem, only i've done as the previous posts have suggested and people still can't see my site. I can see it fine on my computer, however none of the other computers i've tried it on have. Could someone please help me? I don't understand what could be causing this :confused:
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.