Created
November 22, 2011 21:10
-
-
Save mrdanadams/1386974 to your computer and use it in GitHub Desktop.
VirtualBox on Mac
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
#... | |
DocumentRoot /var/www/yoursite | |
Options FollowSymLinks | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride FileInfo | |
</Directory> | |
<Directory /var/www/yoursite> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride FileInfo Indexes | |
Order allow,deny | |
allow from all | |
</Directory> | |
#... | |
</VirtualHost> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
127.0.0.1 localhost yoursite.dev yourothersite.dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
192.168.56.101 ubuntu yoursite.dev yourothersite.dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo mkdir /mnt/host-home | |
$ mount -t vboxsf -o uid=33,gid=33 host-home /mnt/host-home |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd /var/www | |
$ ln -s /mnt/host-home/work/yoursite |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment