32.7 Configuring the Apache Web Server for Your Domain
The next step in setting up your web server is to configure it for your domain name. To configure the web server, begin by changing directory to /etc/apache2 which, in turn, contains a number of files and sub-directories. The main configuration file is named apache2.conf and serves as the central point for organizing the modular configuration files located in the sub-directories. For example, the apache2.conf file includes a line to import the configuration settings declared in the files located in the sites-enabled folder:
# Include the virtual host configurations:
IncludeOptional sites-enabled/*.conf
Similarly, the apache2.conf file imports the ports.conf file, which defines the ports on which the Apache server listens for network traffic.
To configure a web site domain on Ubuntu, begin by changing directory to /etc/apache2. In this directory you will find two sub-directories, sites-available and sites-enabled....