Prior to the configuration of Apache, a domain name was customized, and the IP and domain name was written to the hosts file on Windows, and then appeared to use the IP address can be accessed normally, on Windows can also ping the custom domain name, However, it is not possible to access the custom domain name in the browser.
My network is set to bridge, automatically get the IP address of the
And then when you test the Network service on the virtual machine,
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/59/5A/wKiom1TQeTiwmGp-AAI5sPeOWjY914.jpg "style=" float: none; "title=" 1.png "alt=" Wkiom1tqetiwmgp-aai5speowjy914.jpg "/>
The normal system default NIC name should be eth0, and the first NIC on my virtual machine is named for eth1
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/59/56/wKioL1TQeiHQiqiAAADWdpZ27SU886.jpg "style=" float: none; "title=" 2.png "alt=" Wkiol1tqeihqiqiaaadwdpz27su886.jpg "/>
Next look at the Network service configuration file, and found that the configuration file related to eth0 is content, but the eth1-related configuration file is empty
We re-start the network service to try, the results show
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/59/56/wKioL1TQe2misdPaAADmkmwuolY550.jpg "title=" 3.png " alt= "Wkiol1tqe2misdpaaadmkmwuoly550.jpg"/>
But in fact, my virtual Machine Network service is unblocked.
This is the time to erase/etc/sysconfig/network-scripts/ifcfg-eth0.
And then re-edited the/etc/sysconfig/network-scripts/ifcfg-eth1 for the following:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/59/5C/wKiom1TQqx-CCtKZAACRX-RtT2s032.jpg "style=" float: none; "title=" 11.png "alt=" Wkiom1tqqx-cctkzaacrx-rtt2s032.jpg "/>
Restart the network service, it is ready to start properly
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/59/58/wKioL1TQrAjhFCT0AACGPpqDnBs026.jpg "style=" float: none; "title=" 12.png "alt=" Wkiol1tqrajhfct0aacgppqdnbs026.jpg "/>
Restart Apache, use custom domain name access from the browser, successfully login to the forum
***************************************************************************************
There is still a question here
Previously My network service used a NIC that was eth1
But why eth0 configuration file content, eth1 configuration file content is empty I also can use the network service normally, but in restarting the network service will prompt the device does not exist information?
Questions about the inability to access the forum with a custom domain name when configuring Apache