Let's talk about the virtual hosts in Linux.

Source: Internet
Author: User
Tags virtual environment
For more information about the virtual hosts in Linux, we know that the Linux operating system is a widely used operating system on servers. In a Linux operating system, is a Linux virtual host as we often call it? In fact, it is not professional. it is installed on Windows... for more information about the virtual hosts in Linux, we know that the Linux operating system is a widely used operating system on servers. In a Linux operating system, is a Linux virtual host as we often call it? In fact, it is not professional. it is a virtual environment installed on Windows, and it is actually just a file. Next, let's take a look at some details about Linux and virtual hosts. First, let's take a look at the advantages of Linux virtual hosts. Advantages of Linux virtual hosts: 1. Open idea, Open source code, self-improvement or customization; 2. Free spirit, Free use; 3. complete network functions, built-in TCP/IP protocol; 4. real multi-task and multi-user operating system; 5. fully running in protection mode, fully utilizing the CPU performance; 6. advanced memory management mechanism, more effective use of physical memory; 7. stability, security, and efficiency; 8. compatible with UNIX systems at the source code level, complies with IEEEPOSIX standard 9 and supports dozens of file system formats. 10. device independence and good portability. Linux-based virtual host setup: 1 install webmin. 2. go to webmin to install the virtual-host module. 3. BIND 9 is installed on the server. the path of this module in webmin must be modified accordingly. 4. recompile apache2 first. /configure-prefix =/usr/local/apache/-enable-suexec2) configure Apache, mainly including modifying paths such as httpd 3) plus NameVirtualHost ip LoadModule suexec_module modules/mod_suexec.so. 5. enter http://ip:10000/virtual-host , Follow the prompts to delete unnecessary modules first, and then run the module successfully. 6 add new virtual-server, fill in the corresponding domain name and account information, and click OK. Linux Virtual host configuration: 1. IP address-based virtual host configuration: Step 1: Set the IP addresses of different NICs in the host; Step 2: vim/etc/httpd. conf in httpd. in the conf configuration file, set different configuration segments for each virtual host. Step 3: create directories and homepage files for different virtual sites. Step 4: Restart the Apache service. You can use elinks or enter different IP addresses in your browser to browse different pages. 2. name-based virtual host configuration: Step 1: modify the configuration file httpd. the virtual host configuration section in conf. Step 2: create directories and homepage files for different virtual sites. Step 3: Restart the Apache service.
Related Article

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.