no doubt... i learned from this page that i had to type:
http://<myip>/~myshortname
i had been frustrated that i was typing just http://<myip> and I was getting the apache default page even tho i had already replaced the index.html file in my ~/Sites/ folder.
so that clarified that much.
but what if you don't want to use your short name? how do you reconfigure it so that:
a) it goes straight to your user index.html file with http://myip (without having to build your site in the /Library/WebServer directory...)
or
b) create some kind of alias so that each user can have his/her own page but not necessarily use their short name to define it, as in:
http://myip/~animals (for the site owned by user "morbus") and http://myip/~cars (for the site owned by user "Joe")
thanks.....
also, is there ANY decent WYSIWYG html editor for OS X??
and... How do you use BBEDIT to create a simple go to blah link???? believe it or not I couldn't figure that out.
|
Change <Directory "/Library/WebServer/Documents"> to <Directory "/Users/whatever/Sites"> ("whatever" should be replaced by your short name.)
Different users to different pages:
If it's not going to be systematic then you'll need one line for each user. One way to do it is to use alias, for example, to alias cars and Joe from your example.
You could also create some rewrite rules and let mod_rewrite take care of it.
(Check the apache doc files shipped with OSX for syntax.)