Red Flag asianux Server 3 User's Guide: Configuring the Apache server

Source: Internet
Author: User
Keywords Server Apache User's Guide asianux
Tags aliyun apache based click configuration configuration tool configure etc

This section describes how to use the http://www.aliyun.com/zixun/aggregation/14417.html >apache server's graphical configuration tool--rfapache Configure the Web service system.

7.3.1 Start and stop Apache service

Open the Apache Configuration Tool Rfapache in the main interface window:

Click action → start in the menu bar to start the httpd service.

Click action → stop in the menu bar to stop the httpd service.

Click action → reboot in the menu bar to restart the httpd service.

If the httpd service is already started, the menu item "action → start" is not available, and if the HTTPD service does not start, the item

Action → stop and action → Reboot are not available.

The output information for the action result is displayed in the message window.

The administrator can also perform the start, stop, and restart tasks for the Apache server by using the following command at the command line terminal:

#/ETC/INIT.D/HTTPD Start

#/ETC/INIT.D/HTTPD Stop

#/etc/init.d/httpd Restart

7.3.2 Add and remove virtual hosts

A virtual host is the maintenance of multiple Web sites on a single server and uses host aliases to differentiate them. This allows users to have multiple Web sites on a single Web server, and access to those sites through their respective domain names. For example: www.company1.com and www.company2.com without the user knowing any other path information.

With the number of Web sites on the Internet increasing, the ability to effectively host multiple Web sites on a single server has become a key feature of a first-class Web server engine. Apache provides full support for virtual hosts.

There are two types of virtual hosts: "Based on name" and "ip-based", regarding the difference between them and the specific technical details, please refer to the relevant documentation.

7.3.2.1 Add a virtual host

The Apache Configuration Tool provides a wizard for creating a virtual host. Open Rfapache, select action → add virtual host in the menu, or press the Add Virtual Host button in the toolbar to complete the operation as indicated in the Virtual Host Creation wizard.

With this wizard, the administrator can define the hostname, IP address and port of the virtual host, the home directory, the planning user's access rights, and so on, and after the wizard's Yun, list the new virtual host's profile. The following illustration shows the welcome interface for the Virtual Host Creation wizard.

Virtual Host Creation Wizard

When the following problems occur with your settings, the tool will give you an error prompt to reset.

1. For the "name based" virtual host, the host name has been set up by other virtual host use;

2.) IP "Virtual host, the selected IP address (port) has been used by other virtual host;

3.) The specified home directory does not exist and is not a valid path.

When you create a virtual host, you need to ensure that the name of the virtual server you create is resolved correctly in DNS.

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.