Hi
I would like to set up some difficult apache virtual hosts, but i have not enough skills for doing that:
1. The www. should be ignored in all cases.
2. 2nd level domains (i.e. domain.com) should be looked for in /www/domain.com/
3. 3rd level domains (i.e. example.domain.com) should be looked in /www/domain.com/.sub/example(of course according to 1. it would not apply to
www.domain.com)
4. If the directories don't exist, look for other <VirtualHosts>-s
5. If no virtual hosts match the host, go to the default documentroot
As you can see, the highest priority should have the <VirtualHost> with the virtualdocumentroot, and then the other <VirtualHost>-s and then the default DocumentRoot
Could you help me please?
Thanks in advance.