To configure the Apache virtual host, we need to do this in the following steps:
1, check the Apache virtual host module
2, open the Apache virtual host function
3, httpd-vhosts.conf documents detailed
4, according to the IP configuration of the
apache2.2 Virtual Host Configuration detailed, apache2.2 detailed
I. Modification of HTTPD.CONF
Open the Appserv installation directory, locate the httpd.conf file, and remove the # number in front of the following two lines,
Run multiple domain-based Web sites on an IP address.Your server has an IP address, and there are many mappings (cnames) to this machine in DNS. You and you want to run the www.example1.com and www.example2.org two sites on this machine.
I. Modification of HTTPD.CONFOpen the Appserv installation directory, locate the httpd.conf file, and remove the # number in front of the following two lines, respectively.1 #Remove # means enable Apache's virtual host feature.1 # Include conf/extra/
Buntu 14.04 Configuring a virtual host A virtual host is often used for Web services that provide multiple domain names on a single IP address. This is useful if someone wants to run multiple Web sites on a single VPS with a single IP address. In
A virtual host is often used for Web services that provide multiple domain names on a single IP address. This is useful if someone wants to run multiple Web sites on a single VPS with a single IP address. In this tutorial, let me show you how to set
First, change httpd.confOpen the Appserv installation folder, locate the httpd.conf file, and then remove the # number in front of the following two lines of text, respectively.#LoadModule Vhost_alias_module modules/mod_vhost_alias.soRemove # means
Turn from: http://blog.csdn.net/zm2714/article/details/8351342 First, change httpd.confOpen the Appserv installation folder, locate the httpd.conf file, and then remove the # number in front of the following two lines of text,
First, change httpd.confOpen the Appserv installation folder, locate the httpd.conf file, and then remove the # number in front of the following two lines of text, respectively.#LoadModule Vhost_alias_module modules/mod_vhost_alias.soRemove # means
2015-09-15Article transferred from https://linux.cn/article-3164-1.html
Set up a virtual Host 1. Create a virtual directoryNow, let's continue installing the virtual host. As I mentioned earlier, I'm going to create a new 2 virtual host named "
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.