Mobile app version of vmapp.org
Login or Join
Sue5673885

: VirtualHost add sub domain? 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

@Sue5673885

Posted in: #Apache #Centos #WebDevelopment #WebHosting #Webserver

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?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Sue5673885

1 Comments

Sorted by latest first Latest Oldest Best

 

@Connie744

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

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme