1. Set-up an NFS share from the NAS to the computer that will host Apache (test you can see the mount using ls)
http://kampmeier.com/chris/blog/?p=43
2. Enable Apache Virtual Hosts and configure a Virtual Hosts file to ref the NFS mount:
http://shapeshed.com/journal/setting_up_local_websites_on_snow_leopard/
> HINT The apache files are in /etc/apache2 and /etc/apache2/extra, to restart apache 'sudo apachectl restart'
3. My file looks like httpd-vhosts.conf:
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "/Volumes/Gooseberry/music"
ServerName itunes.alistairthomas.com
ServerAlias itunes.alistairthomas.com
ErrorLog "/private/var/log/apache2/itunes.alistairthomas.com-error_log"
CustomLog "/private/var/log/apache2/itunes.alistairthomas.com-access_log" common
<Directory "/Volumes/Gooseberry/music">
Options Indexes FollowSymLinks MultiViews
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
4. Mess about with no-ip and the Firewall.....
Subscribe to
Posts [Atom]