Google


ADBRITE ads links
You are here: CodeIdol.com > Unix > Linux® Quick Fix > The Apache Web Server > The Etc Httpd Conf.d Directory

SAVE
Digg
Shown on del.icio.us del.icio.us
See Whos Talking About This on Technorati Technorati
I've Reddit reddit

The /etc/httpd/conf.d Directory

Files in the /etc/httpd/conf.d directory are read and automatically appended to the configuration in the httpd.conf file every time Apache is restarted. In complicated configurations, in which a Web server has to host many Web sites, you can create one configuration file per Web site each with its own set of <VirtualHost> and <Directory> containers. This can make Web site management much simpler. To do this correctly:

1.
Back up your httpd.conf file, in case you make a mistake.

2.
Create the files located in this directory that contain the Apache required <VirtualHost> and <Directory> containers and directives.

3.
If each site has a dedicated IP address, then place the NameVirtualHost statements in the corresponding /etc/httpd/conf.d directory file. If it is shared, it'll need to remain in the main httpd.conf file.

4.
Remove the corresponding directives from the httpd.conf file.

5.
Restart Apache, and test.

The files located in the /etc/httpd/conf.d directory don't have to have any special names, and you don't have to refer to them in the httpd.conf file.

    SAVE
    Digg
    Shown on del.icio.us del.icio.us
    See Whos Talking About This on Technorati Technorati
    I've Reddit reddit

    You are here: CodeIdol.com > Unix > Linux® Quick Fix > The Apache Web Server > The Etc Httpd Conf.d Directory
       
    Related tags







    Popular Categories
    Unix books and guides
    AJAX popular information
    C# language guides
    Windows books and cookbooks
    .......






    © CodeIdol Labs, 2007