Aug 05

This great tip was submitted by one of our listeners, Richard M. He is one of the board admins over at http://www.forum.cify.eu/. Thanks for the tip Richard!

Use (assuming you are in the finder) Go->go to folder->type:”/etc/httpd/”->open httpd.conf (doesn’t matter in witch text editor, but I prefer Smultron)

somewhere around line 1066
you’ll find this:

# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>

we’re intrested in the second part,
edit that (or, copy it and then edit the copy) to something like this:

<VirtualHost http://mymac.com:80>
ServerAdmin webmaster@mymac.com
DocumentRoot /users/richard/sites/somesite/
ServerName mymac.com
ErrorLog logs/mymac.com-error.log
CustomLog logs/mymac.com-access.log common
</VirtualHost>

and using http://mymac.com/ you get the files in /users/richard/sites/somesite/
but: the daemon account has to have access to that folder, or it will only give a internal server error

p.s. though may won’t show the folder /etc/ it does exist, as it’s a UNIX system folder,
and /etc/httpd/ is were Apache keeps it’s settings
also, to use Virtual hosts only on one account
go to /etc/httpd/users/<username>/httpd.conf and put the Virtual host instructions in there


Find this useful?

Help us spread the word! Share this with others:

  • Facebook
  • Twitter
  • del.icio.us
  • StumbleUpon
  • Digg
  • Reddit
  • Google Bookmarks
  • email
Tagged with:
Apr 28

Quick Tip - TerminalSometimes when you download large files, the host will provide an MD5 checksum, which is a hash of the raw file data that you can use to compare and see if any of the data was corrupted, changed, or lost during the download process.

To verify the MD5SUM in OS X, simply open the Terminal and type “md5″ followed by one space, and then drag and drop the downloaded file from the finder into the terminal window. Hit return on your keyboard and wait a few moments (The larger the file, the longer it will take). The terminal will spit out the MD5 hash for the file, which you can then compare to the once provided by the download originator!


Find this useful?

Help us spread the word! Share this with others:

  • Facebook
  • Twitter
  • del.icio.us
  • StumbleUpon
  • Digg
  • Reddit
  • Google Bookmarks
  • email
Tagged with:
Mar 20

Quick Tip DiskFor whatever reason, from time to time Mac OS X will unmount a CD or DVD, but not physically eject it. The drive can freeze up and then no matter how long you hold down the eject key, nothing happens. Before you go grab the needle-nose pliers and a screwdriver, try this simple tip.

Restart your mac, and as soon as you hear the startup chime, immediately push and hold the mouse (or trackpad) button. Continue to hold the button for a few seconds, and the CD/DVD disc will pop right out, no pliers necessary!


Find this useful?

Help us spread the word! Share this with others:

  • Facebook
  • Twitter
  • del.icio.us
  • StumbleUpon
  • Digg
  • Reddit
  • Google Bookmarks
  • email
Tagged with:
Mar 11

Quick Tip Hard DriveSometimes Mac OS X goes a little crazy and won’t let you eject an external drive, even after it’s no longer in use by any application. If you can’t unmount a disk even after all open applications are closed, and don’t want to restart your machine, this little Terminal trick is for you.

Simply open the Terminal, and type:

diskutil unmountDisk force /Volumes/DISK_NAME

Just replace DISK_NAME with the volume name (yes, it’s case sensitive) and you are all set!

Disclaimer: Make sure you have closed all applications that could be using the drive, and that the drive is not in use, or you could suffer data loss/corruption!


Find this useful?

Help us spread the word! Share this with others:

  • Facebook
  • Twitter
  • del.icio.us
  • StumbleUpon
  • Digg
  • Reddit
  • Google Bookmarks
  • email
Tagged with:
All content ©2009 Market Vision Media, LLC. All rights reserved. Terms of service.
preload preload preload