virtual hosts are configured on apache and the configuration files of each virtual host are stored in sites-available, it is very convenient to disable and enable the Virtual Host: when a link is established under sites-enabled t
/web/vhosts/www{1,2} mkdir/var/log/httpd cd/var/log/httpd touch www{1,2}. {err,access}2) Create a home page file and write its corresponding content to it separately/web/vhosts/www1/index.html content is as follows:/web/vhosts/www2/index.html content is as follows:3) Configure/etc/httpd/conf/httpd.conf with the following contents:namevirtualhost192.168.1.179:80Two.1) Establish a private CACd/etc/pki/ca (umask 077; OpenSSL genrsa-out pirvate/cakey.pem 2048) #生成私有CA OpenSSL Req-new-x509-key privat
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, respectively.
#LoadModule Vhost_alias_module modules/mod_vhost_alias.so
Remove # means enable Apache's
Before introducing network mode, the use of several simple commands about the networkIfup eth0//start NIC Eth0Ifdown eth0//Turn off the NIC Eth0/etc/network/interfaces//Network configuration file/etc/init.d/networking//Network service location/etc/init.d/networking Restart//Restart Network/etc/resolv.conf//dns configuration fileIfconfig eth0 192.168.5.111//Reconfigure IP for NIC Eth0Simple introduction to o
Virtual Host is a technology that builds multiple Web services on the same machine that belong to different domain names or based on different IP. You can refer to different IP and ports for each Web site running on the same physical machine, or you can have multiple sites with different domain names.Apache is the world's most widely used WEB server, starting with version 1.1 to support
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 enable Apache's virtual host feature.#Include conf/extra/httpd-vhosts.confTo get rid of this line, it means to import the v
In Virtual machine Virtual Box, Linux cannot ping the website to solve the (unknown host XXX) Environment: VirtualBox4.1 + RedHat Linux 6 + Putty0.62 problem: linux in Virtual Machine
' Cat/usr/local/nginx/logs/nginx.pid 'At this point you are locally accessing the domain name z.com It will go to request the extranet, will not parse your Linux configuration informationD. Must modify the local host, bind the domain name corresponding to the Linux IP (for example, IP is 192.168.1.42)192.168.1.42 z.co
user has its own part of the system resources (IP address, document storage space, memory, CPU, etc.). Each virtual host is completely independent, and it appears to the outside world that each virtual host and a single host are performing exactly the same. So this virtuali
Ubuntu VirtualBox Virtual Machine and host machine ping each other simple configuration experience, ubuntuvirtualbox
Virtualbox is a very good software. There are usually three methods between virtualbox and the host,Bridged Mode,NAT mode, host-onlyThe default method of inst
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/httpd-vhosts.confTo get rid of this line, it means to import the virtual host
virtual domain host to point to4,HTTPD file, open the Include conf/extra/httpd-vhosts.conf module5,httpd-vhosts files, configuring virtual hosts6, There may also be a Linux SELinux firewall that causes this, rememberConfiguring Httpd-vhosts Virtual
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, respectively.#LoadModule Vhost_alias_module modules/mod_vhost_alias.soRemove # means enable Apache's virtual host feature.#Include conf/extra/httpd-vhosts.confTo get rid of this line,
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 enable Apache's virtual host feature.#Include conf/extra/httpd-vhosts.confTo get rid of this line, it means to import the v
name for the site.
# # DocumentRoot is the root directory of Web site files # ServerName is a website domain name that needs to be consistent with DNS-directed domain name #
3. Restart the httpd service and execute the following statement.
Service httpd Restart
Ubuntu LinuxUbuntu has the largest number of individual users in Linux distributions. Many people are used in native and
file, open the Include conf/extra/httpd-vhosts.conf module5,httpd-vhosts files, configuring virtual hosts6, There may also be a Linux SELinux firewall that causes this, rememberConfiguring Httpd-vhosts Virtual Host with APACEH is simple for developers, but very important, for reference only!Resources:http://httpd.ap
Ways to enable and deactivate a site
A2ensite Site name A2dissite Station Roll Call
Name-based virtual host (distinguished by domain name)
After installing Apache, there is a virtual host called default. When you create a new virtual hos
server that actually supports all virtual Web sites.The following three small experiments are introduced respectively.1. Virtual directoryFirst install the httpd in Linux, you can use RPM-QC httpd to view the configuration file about httpd after installation.Edit the master config
VirtualBox is a very good software, usually with the host there are 3 ways,bridged mode ,nat mode, Host-only way, the default way to install is NAT, But this way in the VirtualBox virtual machine has a disadvantage, is that the virtual machine can ping the host, the
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.