1. Create two domain name sites in advance
Separate the web1s and web2s, and separate the main pages web1.html and web2.html;
2. Enable httpd-vhosts.conf In the httpd. conf file
Remove #, that is
# Virtual hosts (virtual host) include CONF/extra/httpd-vhosts.conf
3. Set the http-vhosts.conf file (Path: X:/apachex. X/CONF/extra/http-vhosts.conf)
Add the following content:
# Configure the
Usually we now like to use virtual machines for experiments, cluster construction, etc., in this process, will encounter the cloning of virtual machine problems, when no IP modification, cloning, in the case of changing the IP address is not a problem, but, if we set a fixed IP
Fedora 17 Using Virtual Machine bridging method for static configuration of fixed IP address 1) # ifconfig p3p1 up (Note: After my system is installed, the default Nic is p3p1. This command activates this Nic. You can change the name as needed .) 2) # chkconfig -- level 2345 network on (Note: Step 2: Set the startup when the NIC enters the system. If you want to automatically obtain the
files, so you can quickly restore the system default parameter values.
Ifup eth0 (Ifdown eth0)Start or close a network interface. Can be handled through this simple script! These two script will take the initiative to the/etc/sysconfig/network-scripts/directory, read the appropriate configuration file to deal with Ah! (e.g. Ifcfg-eth0).
Maybe you just have to go to these basic instructions and files, haha! The setting of network parameters is too simple! However, it is better for you t
In a LAN or network-less environment, virtual machine sets the ip addresses of the network card VMnet1 and VMnet8, provided that a fixed ip address must be set-General Linux technology-Linux technology and application information. For more information, see the following. After VMware is installed, two virtual NICs are
Confirm that the VMNET8 virtual network card is enabledBelow begins to set the static IP into Ubuntu virtual machine.Setting up a static IP in Ubuntu 12.04.11. Start the virtual machine Ubuntu system, open the terminal and use the following command to open and edit the netwo
apache2.2.x+tomcat single IP multiple domain name multi-site Virtual host configuration detailed (Win2003 environment)
A new server was recently purchased, and the apache+tomcat+php Web application environment was successfully consolidated under WINDOWS2003. The next encounter is through the server under the single IP configuration of multiple sites and multiple
: This article describes how to bind an ip address (for example, 127001) to multiple domain names (virtual hosts) in PHP. For more information about PHP tutorials, see. Solution 1: differentiate virtual hosts through ports
① Prepare for binding a site
1. first open your website (d:/myblog (stored in the myblog directory of drive d ))
2. configure the httpd. conf
The following describes the virtual machine network configuration in the bridge mode and NAT mode to resolve the operation of exposed IP, I hope to help you. One, bridging mode
1.> ifconfig (or ipaddr)
If inet is 127.0.0.1, there is no external exposure to the IP
2.> Modify Configuration
sudo vi/etc/sysconfig/network-scripts/ifcfg-ens33
Change the Onboot=n
The local machine is win7, the IP address is manually configured for the ubuntu system on the Virtual Machine. The local machine is ubuntu through wireless network, and the virtual machine connection mode is bridged (bridging mode ). 1. Run the command ipconfig/all in cmd on the local machine. The following figure shows the part of the command: Wireless LAN adapt
1. Modify the VM Internet mode to host only2. Start the virtual machine3.rm-rf/etc/udev/rules.d/70-persistent-net.rules4. Modify the network configuration of the virtual machine:(1) Vi/etc/sysconfig/network-scripts/ifcfg-eth0(2) Modify the device value to eth0(3) Delete hwaddr line(4) Comment out Bootproto=dhcp(5) Added: ipaddr=192.168.0.10xnetmask=255.255.255.0gateway=192.168.0.17.vi/etc/resolv.conf, will
1. Enter the IP address of the system to save the file location[Email protected] ~]# cd/etc/sysconfig/network-scripts2. Modify the file that holds the IP information[[email protected] ~]# vim Ifcfg-eth0 (the name on your machine may not be this, but it's a file that starts with Ifcfg-eth)Exit after saving3. Restart the network[Email protected] ~]# service network restartNote: If you find that your
Issue: A vmware-brought NAT mapping 80 port is not valid causing the virtual machine Web site to map 80 ports to the public IP
Idea: Since the NAT service of Windows Server can map a port to a Hyper-V virtual machine via a loopback adapter (see HTTP://MWT666.BLOG.51CTO.COM/64376/265362/), VMware should be able to , but the configuration steps for the
Host: Win10Virtual machine: Win7The Win7 virtual machine network adapter is set up as followsVirtual machine in the virtual network card settings, VMnet8 set as follows, remove the DHCP check, remember the gateway addressIn the host's network and Sharing Center, the IP address of the VMNET8 network cardNetwork and Sharing Center in Win7
Interface PHY-br-VLAN Type:Patchoptions: {Peer=int-br-VLAN} Port"Bond1"Interface"Bond1"ovs_version:"2.4.0"4, but in the QDHCP network card tap15d024ee-23 can't catch the DHCP broadcast packet, see each OvS Bridge flow table did not find any problem, it is strangeReason:Later, with the help of colleagues, it was found that the BOND1 was added to a Linux bridge:brctl Showbridge name ID STP enabled interfacesbr0 8000. 1418774dd6a3 no em1br1 8000. 90e2ba8465f
Solution One: Differentiate different virtual hosts by port① follow the method of binding a site to prepare1. First Develop your own website (d:/myblog (stored in the MyBlog directory of D-disk))2. Configure the httpd.conf file (stored in the Conf folder of the Apache installation directory) and enable httpd-vhosts.conf (remove the # number in front of the second line).3. Configure the httpd-vhosts.conf file (stored in the extra folder of the Apache i
If there are two domain names, respectively hello.abc.com and play.abc.com, you need to bind these two domain names toIP is 219.13.34.32 on the server1. First you need to specify the domain name and IP correspondence in the Domain Name Vendor Management page2.WEB Server Configuration Good lamp environment3. Put the corresponding source code into the/usr/local/apache/htdocs directory, respectively named upload and upload24. Configure Apache#vi httpd.co
Problem Description:Feel the problem to solve the back to think it is very simple, but no solution can not find the problem, knowledge reserves stretched. In response to this problem I have a long time to fix, all kinds of information, but also to prove that I have a lower ability to screen useful blog, first let me cry will go ...In virtual experiments, especially distributed cluster environment, we need to configure static
In a virtual machine, the openSUSE system uses static IP configuration records to connect to the host through NAT.
View VM ip status
View the current ip address range and gateway information.
In this way, you can obtain the gateway information and the ip address
2 Kinds of possibilities 1. Tip "Unable to connect because the target machine is actively rejecting. (10061) ". It's a damn thing. McAfee, remove the antivirus standard protection from Access Protection = "Prevent mass mail worms from sending messages before the blocking tick is removed." 2. E:\php\binaries\apache\conf\httpd.conf Found it ## listen:allows-Bind Apache to specific IP addresses and/or# ports, instead of the default. See also the # dir
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.