Setting a third level domain
i'm trying to setup a third level domain for my website http://www.morlotti.com
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!
9 Replies
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 ?
What kind of configuration do you need?
thanks
I'm on linode 1gb, and the directives on site-available are:
ServerName en.morlotti.com
ServerAlias
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
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
Edit: Either way, you shouldn't have http:// in the serveralias.
You might receive quicker help at 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
what line of apache2.conf do you need ?
apache2.conf here