Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Oct 19, 2010 1:24 pm 
Offline
Newbie

Joined: Tue Sep 30, 2008 1:35 am
Posts: 3
Hello,

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:

Code:
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


Top
   
 Post subject:
PostPosted: Tue Oct 19, 2010 1:59 pm 
Offline
Newbie

Joined: Tue Sep 30, 2008 1:35 am
Posts: 3
problem fixed when I created:
/home/norsubcon/logs/error.log


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group