Apache under the Domain name virtual host in the Personal home page directory to implement the process

Source: Internet
Author: User
Tags versions web services root directory backup

Experimental background:

Contoso is currently a company that provides virtual hosts. Xiaonuo and Dreamfire want to request a virtual host on Contoso to provide Web services to their companies. The domain name required for the application is www.xiaonuo.com and www.dreamfire.com respectively. To conserve IP addresses, decide to use host headers to differentiate between individual virtual hosts.

Experiment steps:

First, the Apache installation (development of the source code application compilation installation)

RHEL4 the Apache service is installed by default, the root directory is under/etc/httpd/, the primary profile is under/etc/httpd/conf/httpd.conf, the document root is/var/www/html/, and the startup script is/etc/init.d/ In httpd.

This experiment installs the Apache service program by compiling the installation method.

Note: After installation, there are two sets of Apache services in the Linux system, and both provide a Web service to the user, enabling that service, and the Apache program provides services to the user. In the real world, two are present, the default installation as a compilation of the backup of the installation, the configuration process can be configured to the same, when one of the broken down can be directly enabled another one. Can do the role of redundant backup. It is not possible to install two Web servers on a single host under Windows, unless you do a cluster implementation.

1, confirm the system has been installed in the compilation environment

Before compiling the source code for any application, you need to verify that the GCC compiler environment is already installed in the current system.

Note: If you do not have a compilation environment installed, you can click the Update button by selecting Development tools in the Application Manager tool and then press the prompts to start the installation from the fourth CD until you are finished.

2, download the Apache program source code installation package file

To maintain basic consistency with the Apache version of the RHEL4 system, use the following command to download the 2.0.59 version of the Apache server's source code package.

NOTE: The Apache server has 1.X and 2.X two versions, the 1.X version is currently the highest 1.3, this version of the previous version has a good compatibility. The operation is also fairly stable. The 2.X version adds more functionality to the 1.X version, and for the new application system, the Apache 2.X version is a good check. There are currently 2.0 and 2.2 two major versions of Apache in the 2.X version, and the 2.2 version adds a lot of new features, but the 2.0 version is more stable relative to 2.2.

The method to download in Liunx is: #wget http://mirror.vmmatrix.net/apache/httpd/httpd-2.0.59.tar.gz

This experiment has been downloaded well and mounted to the/mnt/hgfs/liunx/directory.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.