Web service configuration and application 4

Source: Internet
Author: User
Web service configuration and application 4-Linux Enterprise Application-Linux server application information. The following is a detailed description. 11. Virtual Host Configuration: it is implemented to divide a real host into many "virtual" hosts. It has the following advantages: saving investment, saving maintenance costs, professional maintenance, and more stable performance.
① The configuration of an IP address-based VM is as follows:

ServerName 192.168.1.1: 80
ServerAdmin admin@163.com
DocumentRoot "/usr/www/web"
DirectoryIndex index.html
ErrorLog logs/web/error_log
CustomLog logs/web/access_log combined

② Domain name-based VM Configuration
NameVirtualHost 192.168.1.1

ServerName www.sun.com: 80
ServerAdmin admin@163.com
DocumentRoot "/usr/www/web"
DirectoryIndex index.html
ErrorLog logs/web/error_log
CustomLog logs/web/access_log combined

12. Start and Stop web Services
/Etc/init. d/httpd start
/Etc/init. d/httpd stop
/Etc/init. d/httpd restart
When the web Service is automatically started, you can execute ntsysv and find httpd with an asterisk.

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.