I always thought creating a subdomain in Apache2 was as easy as adding the following line to the httpd.conf file (domain.nl is only an example)
This conf doesn't work, I get a http 404 not found when going to sub.domain.nl, yet domain.nl still works. What the heck am I doing wrong? I already read about RewriteRules, but what I saw is that it may be a step too far for the simple thing I am trying to achieve, after all, VirtualHost was made for this kind of things, right? Can someone help me? Thanks!
<VirtualHost sub.domain.nl:80> ServerAdmin firstname.lastname@example.org DocumentRoot "C:/folder/subfolder" ServerName sub.domain.nl ErrorLog logs/sub.domain.nl-error_log CustomLog logs/sub.domain.nl-access_log common </VirtualHost>