Services/domains

From popdata
Jump to: navigation, search

Adding a new domain

(using .vancouvergroup.net

  • buy domain name from netfirms.ca
  • add MX record to 137.82.131.80 (pmail.popdata.bc.ca)
  • add A record for www. to 137.82.131.55 (cartier)
  • go to webmin on champlain (https://champlain:10000)
  • create master zone, fill in
    • domain: vancouvergroup.net
    • email: jim@popdata.bc.ca
    • rest are defaults
  • apply changes
  • add MX record:
    • name: (empty)
    • mx: to 10.80.20.80
    • priority: 10
  • add A record (optional)
    • for empty name pointing to cartier
    • for www pointing to cartier
  • on alder.chspr.ubc.ca
cd /etc/tinydns/root
echo ".vancouvergroup.net:10.80.20.80:b:2959200" >> data
make
svc -d /service/*
svc -u /service/*
cd /etc/dnscache/root/servers
echo "10.80.20.80" > vancouvergroup.net
svc -d /service/*
svc -u /service/*
  • add web hosting on cartier.popdata.bc.ca (optional)
  • cd /etc/apache2/sites-available
  • create vancouvergroup file:
<VirtualHost *:80>
    ServerAdmin webmaster@popdata.bc.ca
    ServerName www.vancouvergroup.net

    DocumentRoot /var/www/vancouvergroup/
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>
    <Directory /var/www/vancouvergroup/>
        Options Indexes FollowSymLinks MultiViews ExecCGI
        AllowOverride None
        Order allow,deny
        allow from all
    </Directory>

    LogLevel warn
    ErrorLog /var/log/apache2/vancouvergroup_error.log
    CustomLog /var/log/apache2/vancouvergroup_access.log combined
    ServerSignature On
</VirtualHost>
  • aa2ensite vancouvergroup
  • /etc/init.d/apache2 reload