Problem with adding a new domain name
I have problems with adding a domain name to my existing linode (npo-inc.com)
Problems:
1) Norsubcon.com points to the DOCROOT of brekke.npo-inc.com
2) When I "a2ensite norsubcon.com" my Apache will not start.
Here are the details:
root@localhost:/etc/apache2# ls -la sites-enabled/
total 8
drwxr-xr-x 2 root root 4096 Oct 19 16:11 .
drwxr-xr-x 7 root root 4096 Oct 19 16:03 ..
lrwxrwxrwx 1 root root 37 Oct 19 16:00 brekke.npo-inc.com -> ../sites-available/brekke.npo-inc.com
lrwxrwxrwx 1 root root 30 Oct 19 16:00 npo-inc.com -> ../sites-available/npo-inc.com
lrwxrwxrwx 1 root root 37 Oct 19 16:00 portal.npo-inc.com -> ../sites-available/portal.npo-inc.com
lrwxrwxrwx 1 root root 35 Oct 19 16:00 wiki.npo-inc.com -> ../sites-available/wiki.npo-inc.com
root@localhost:/etc/apache2# cd sites-available/
root@localhost:/etc/apache2/sites-available# vi default
--------------------------------------------------------------------------------
<virtualhost 69.164.201.33:80="">ServerAdmin wenbert@ekini.net
ServerName norwegianpacificoffshore.com
ServerAlias www.norwegianpacificoffshore.com
DocumentRoot /srv/www/norwegianpacificoffshore.com/public_html/
ErrorLog /srv/www/norwegianpacificoffshore.com/logs/error.log
CustomLog /srv/www/norwegianpacificoffshore.com/logs/access.log combined</virtualhost>
root@localhost:/etc/apache2/sites-available# vi npo-inc.com
<virtualhost 69.164.201.33:80="">ServerAdmin wenbert@ekini.net
ServerName www.npo-inc.com
ServerAlias npo-inc.com
DocumentRoot /home/npo/public_html/
ErrorLog /home/npo/logs/error.log
CustomLog /home/npo/logs/access.log combined</virtualhost>
root@localhost:/etc/apache2/sites-available# vi portal.npo-inc.com
<virtualhost 69.164.201.33:80="">ServerAdmin wenbert@ekini.net
ServerName portal.npo-inc.com
ServerAlias www.npo-inc.com
DocumentRoot /home/portal/public_html/
ErrorLog /home/portal/logs/error.log
CustomLog /home/portal/logs/access.log combined</virtualhost>
root@localhost:/etc/apache2/sites-available# vi norsubcon.com
<virtualhost 69.164.201.33:80="">ServerAdmin wenbert@ekini.net
ServerName www.norsubcon.com
ServerAlias norsubcon.com
DocumentRoot /home/norsubcon/public_html/
ErrorLog /home/norsubcon/logs/error.log
CustomLog /home/norsubcon/logs/access.log combined</virtualhost>
root@localhost:/etc/apache2/sites-available# vi brekke.npo-inc.com
<virtualhost 69.164.201.33:80="">ServerAdmin wenbert@ekini.net
ServerName brekke.npo-inc.com
ServerAlias brekke.npo-inc.com
DocumentRoot /home/brekke/public_html/
ErrorLog /home/brekke/logs/error.log
CustomLog /home/brekke/logs/access.log combined</virtualhost>
Thanks so much. I have been trying to figure things out myself but it has taken me a few hours now.
Regards,
Wenbert
1 Reply
/home/norsubcon/logs/error.log