Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue May 14, 2013 10:06 am 
Offline
Senior Newbie

Joined: Tue May 14, 2013 10:02 am
Posts: 6
Hi all
i'm trying to setup a third level domain for my website http://www.morlotti.com but i'm having few troubles.
I already set with my hosting service two CNAME dns ( en.morlotti.com and ru.morlotti.com ) and the roots on the vps are already up.
My problem is setting up the apache2 correctly.
I'm pretty newbie, i'm not the person who configured linode, and he don't work anymore here.

thanks for the answers!


Top
   
PostPosted: Tue May 14, 2013 10:53 am 
Offline
Senior Member

Joined: Fri Feb 17, 2012 8:20 pm
Posts: 365
https://library.linode.com/web-servers/ ... tual-hosts Should help you out :)


Top
   
PostPosted: Tue May 14, 2013 10:59 am 
Offline
Senior Newbie

Joined: Tue May 14, 2013 10:02 am
Posts: 6
https://library.linode.com/hosting-website#sph_id8

this isn't working on me :\
i created a en.morlotti.com into data/www
i set a public folder inside.
then i created the

sudo nano /etc/apache2/sites-available/en.morlotti.com
DocumentRoot /data/www/en.morlotti.com/public/

saved, but at the end trying to restart/reload apache2 don't work...



root@morlotti:/# sudo /etc/init.d/apache2 reload
sudo: unable to resolve host morlotti
sudo: /etc/init.d/apache2: command not found
root@morlotti:/# sudo service apache2 restart
sudo: unable to resolve host morlotti
apache2: unrecognized service

:\

any help ?


Top
   
PostPosted: Tue May 14, 2013 2:45 pm 
Offline
Senior Member

Joined: Fri Feb 17, 2012 8:20 pm
Posts: 365
Post your configs. Make sure you also did a a2ensite en.moriotti.com (or whatever thename of the vhost is in sites-available)


Top
   
PostPosted: Wed May 15, 2013 4:09 am 
Offline
Senior Newbie

Joined: Tue May 14, 2013 10:02 am
Posts: 6
a2ensite is already done and ok.
What kind of configuration do you need?

thanks


Top
   
PostPosted: Wed May 15, 2013 5:25 am 
Offline
Senior Member

Joined: Fri Feb 17, 2012 8:20 pm
Posts: 365
Your vhost config would be great.


Top
   
PostPosted: Wed May 15, 2013 6:10 am 
Offline
Senior Newbie

Joined: Tue May 14, 2013 10:02 am
Posts: 6
any hint how to tell you the exact config ? :\
I'm on linode 1gb, and the directives on site-available are:

<VirtualHost *:80>
ServerAdmin xxxxx@xxxxxx
ServerName en.morlotti.com
ServerAlias http://www.en.morlotti.com
DocumentRoot /data/www/en.morlotti.com/public/
ErrorLog /data/www/en.morlotti.com/logs/error.log
CustomLog /data/www/en.morlotti.com/access.log combined
</VirtualHost>

BUT... i don't understand why in the "sites-available" root, there isn't any of the actual active web-sites...
i repeat that i'm not the person who configured this machine.
Actually there are 3 dns pointing to the machine, new.morlotti.com, stats.morlotti.com, morlotti.com.
None of them is under sites-available or sites-enabled


Top
   
PostPosted: Wed May 15, 2013 6:25 am 
Offline
Senior Member

Joined: Fri Feb 17, 2012 8:20 pm
Posts: 365
If the other active sites are not in sites-enabled, it might not use that at all. Could you also post /etc/apache2/apache2.conf (or /etc/apache2/httpd.conf)

Edit: Either way, you shouldn't have http:// in the serveralias.

You might receive quicker help at IRC: https://www.linode.com/irc/
I'm online there as well, I'm not watching the chat 24/7 but I try to look when I can so we (there's lots of people on IRC who can help) can go through it :)


Top
   
PostPosted: Wed May 15, 2013 6:42 am 
Offline
Senior Newbie

Joined: Tue May 14, 2013 10:02 am
Posts: 6
( joined @ irc )
what line of apache2.conf do you need ?


Top
   
PostPosted: Wed May 15, 2013 8:42 am 
Offline
Senior Newbie

Joined: Tue May 14, 2013 10:02 am
Posts: 6
http://sprunge.us/ROQi

apache2.conf here


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


Who is online

Users browsing this forum: No registered users and 4 guests


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