Hello All!
Please, wait! Don't scream - I used search! I used google...I followed ALL possible documentation.
But lighttpd still doesn't perform as it should regarding vhosts.
I'm not sure what I do wrong. If I even do anything wrong?
So, I have:
Ubuntu 10.04
lighttpd
I have a domain linked to my linode. i.e. domain.com
I want to organize a repository for ALL web content at:
/var/www/
where I want to have a folder per each domain:
/var/www/domain.com/
and in case if a domain uses SUB domain, use the folder INSIDE the domain folder:
http://sub.domain.com/ ---> /var/www/domain.com/sub/
That kind of infrastructure was on my shared hosting and I want to maintain it.
But I'm lost.. I can't achieve it with simple-vhost mod. And with evhost - ... I'm drowning in conditionals...
And also, I have a naive question. Do I need to add any dns records for sub domains I'm going to use? (A rec?)
p.s. I'm sorry peopl, you are my last resort!!!)