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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -