Enterprise Computing
Friday, February 12, 2010
  Apache Sharing
Here is what I did....

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.....

 
Alistair Thomas's 'everything to do with enterprise computing'.

Archives
03/01/2004 - 04/01/2004 / 04/01/2004 - 05/01/2004 / 05/01/2004 - 06/01/2004 / 08/01/2004 - 09/01/2004 / 03/01/2005 - 04/01/2005 / 04/01/2005 - 05/01/2005 / 06/01/2005 - 07/01/2005 / 08/01/2005 - 09/01/2005 / 09/01/2005 - 10/01/2005 / 11/01/2005 - 12/01/2005 / 02/01/2010 - 03/01/2010 / 06/01/2013 - 07/01/2013 /


Powered by Blogger

Subscribe to
Posts [Atom]