I have mod_vhost_alias enabled. My GoDaddy DNS A-Record Host='*' points to my server.
In /etc/apache2/sites-available/000-default I have
<VirtualHost *:80> UseCanonicalName Off VirtualDocumentRoot /var/www/%0/public_html VirtualScriptAlias /var/www/%0/cgi-bin </VirtualHost>
But when I try to go to subdomain.domain.com I get:
The requested URL / was not found on this server. Been working at this ALL day! PLEASE help! Thank you!
UPDATE: So I got this to work by changing the %0 to %1 because my folder names were "subdomain" however now if I go to domain.com instead of subdomain.domain.com I get an error... How can I have the best of both worlds?