1

I rarely touch apache configs but I must be doing something wrong here.

trying to set it up so these domains point to different webroots:

example.com -> var/www/html

ggurt.example.com -> var/www/html/ggurt

With the current config (screenshot below), ggurt.example.com and example.com BOTH go to var/www/html/ggurt. I want the sub domain and second level domain to have different webroots. What am I doing wrong?

enter image description here

  • I give examples in my answer in the link above that should help. Cheers!! – closetnoc Nov 17 '16 at 23:53
1

There's lot's more on Apache configuration over at StackOverflow. Like you I've done very little in the config files, so apologies if this is not much use.

Not entirely sure this answers your question, but worth a punt: httpd Virtualhost Subdomains

Not the answer you're looking for? Browse other questions tagged or ask your own question.