1

This question already has an answer here:

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

marked as duplicate by closetnoc, John Conde Nov 18 '16 at 0:33

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 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.