Deploying Suse Linux Enterprise Server
| Purchase "Deploying Suse Linux Enterprise Server" at Lulu.com |
Apache Web Server
- SLES Configuration Layout
- The Yast Apache Wizard and Configuring Apache
- Creating Virtual Hosts
- Apache Authentication Techniques
- Using MySQL with Apache
The Apache Web Server is one of the most robust, configurable and widely used web servers across the Internet. Not only does it function great as a basic web server, but it can use a wide variety of scripting languages and modules. It also has the ability to be configured to host multiple sites from the same machine and is the basis of quite a few web applications that you can deploy for your network. Nowadays, deploying a web server within your environment is considered a requirement.
SLES Configuration Layout
Before I get into configuring the Apache Server through Yast, I need to cover how SLES stores the configuration files for Apache. This may not seem important, but this information will allow you to fully understand all aspects of configuring Apache through Yast.
Historically, Apache used a single file to store it's configuration data for the service. This file, "httpd.conf", is still in use today, although most GNU/Linux Distributions now spread the Apache configuration across multiple files for clarity and ease of administration. With Suse Linux Enterprise, these files are located in the "/etc/apache2" directory.
httpd.conf - This file is still the main configuration file for the Apache Web server and any setting you want to apply to everything Apache "Serves" you would set here. However, with modern distributions (including SLES), the main purpose of this file is to simply "include" the content of other files within the httpd.conf file. The result is that the computer thinks all the configuration data is present in the httpd.conf file, but in reality the configuration is spread across multiple files.
Below are the files that you will likely deal with when configuring the Apache Web Server. These files are located within the "/etc/apache2" directory on Suse Linux Enterprise Servers.
uid.conf - This file allows you to specify which user and group the Apache Server is ran under. Some web applications may require you to modify this.
default-server.conf - This file configures the default server that replies to "non-virtual-host" requests. This means that if you do not configure Virtual Hosts, this is the main configuration file for your server. A word of caution: it is relatively easy to over-write this file through yast, with the result of losing the basic configuration of your web-sites. I will cover this in-depth later.
vhosts.d/yast2_vhosts.conf - This file configures the Virtual Hosts for your server. Utilizing virtual hosts you can serve multiple web sites from a single server.
conf.d/ - This directory contains configuration files for various packages that you may have installed. For instance, the configuration to allow you to view the Apache Manual through your server can be found here. Other software packages such as PHP and Perl place their configuration files here.
| Purchase "Deploying Suse Linux Enterprise Server" at Lulu.com |


