06 Jul
Posted by krisgale as virtualization, windows, os x, apache
first, edit your web server’s httpd.conf (for example, /Applications/MAMP/conf/apache/httpd.conf) and add a VirtualHost with some name other than “localhost” (we do this because windows may reserve localhost for some of its services).
NameVirtualHost yourhostname:80
<VirtualHost *:80>
ServerName yourhostname
DocumentRoot “/your/directory/here”
</VirtualHost>
edit leopard’s “hosts” file:
sudo nano -w /etc/hosts
and append your new host name to the existing line for localhost:
127.0.0.1 localhost yourhostname
now, […]
| M | T | W | T | F | S | S |
|---|---|---|---|---|---|---|
| « Nov | ||||||
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
| 29 | 30 | 31 | ||||