Hello, i have a question about creating subdomain pointing to the directory. Is there any possibility to create a subdomain which makes new entry in vhost? It is because I need to use my custom .htaccess for this subdomain. Which i can't do with subdomain using redirect. Any ideas? Thanks
If I create a new subdomain like sub.domain.com and the original domain.com has alias not only www. but also *., then it takes original vhost. Not the second one, which is subdomain.
Thats correct. You can noz use wildcard vhosts and subdomains in apache. Change * vhost to e.g. www and then create the other sites as separate websites. If you need additional subdomains for the main website that shall point to the exact same directory, add them as subdomains or aliases.
Stupid answer.. If you have a product where you allow customers to have 1 site, but many subdomains then you cant do like that.
Same to you You should better read whats this thread is about... They can have as many subdomains as they like for their vhost and they can redirect these subdoamins to any directory within their site with apache rewrite rules. But this thread is about a different question, its about subdomains having their own vhost and a own vhsot is a website so you have to add a new website of course...