|
|
mod_alias should also work
From MacWorld:
Banish the Tilde from Users' Site Names With OS X's built-in Personal Web Sharing (found in the Sharing preference pane), every user on your Mac can have a personal Web site that others can access at a URL such as http://your.ip.number/~user_name. If you don't like having the tilde in the URL, however, you can easily remove it with Terminal and an admin password. Open a Terminal window, and then type cd /etc/httpd/users
to switch to the directory that Apache (the built-in Web server) uses to manage the user sites. If you're unsure of your users' short names, type ls to see a list of the available configuration files. Say you want to modify the settings for a user named Alice: Alias /alice "/Users/alice/Sites". This Alias command acts just like an alias file in the Finder -- it tells Apache that someone looking for a page at the /alice URL should be sent to Alice's Sites folder instead. Once you've added the line, press control-X to exit, and then press Y when pico asks if you'd like to save the modified buffer -- this will write your changes to the file. Return to the Sharing preference pane, and turn the Personal Web Sharing feature off and then back on. This restarts Apache, which will then read the modified configuration. From now on, you can skip the tilde and just type http://your.ip.address/alice to get to Alice's Web site. Repeat this process for any other user URL you'd like to modify.
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.14 seconds |
|