linux - host many domain to the same server -
i have domain:
site 1: /var/www/portail1
with conf:
/etc/httpd/conf.d
what want add domain same server:
site 2: /var/www/portail2
but question here site 1 call conf.d default, , need second conf.d site 2, how can tell site 2 search conf ( example /etc/httpd/conf2.d)?
by default, there should include directive in main apache configuration: either httpd.conf or apache2.conf.
in ubuntu apache2.conf, that:
# include generic snippets of statements include conf.d/ # include virtual host configurations: include sites-enabled/
so, if add conf file inside conf.d/ or sites-enabled/ automatically included , read apache during start.
Comments
Post a Comment