: This article mainly introduces how to set up the Apache virtual host vhost in php. if you are interested in the PHP Tutorial, refer to it. Address: http://blog.csdn.net/oneym/article/details/48050487
Author: oneym
I. environment description
1. use XAMPP In php environment2. win7_64-bit system3. install XAMPP In the
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 c
A:Virtual machine is a desktop installation1. Virtual machine-Settings-Network adapter sub-option-select "Bridge mode"2. Select System in Virtual machine-preferences (Preferences)-Network connection (Networking Connections)3, if you click on the SYstem eth0 for editing, do not choose to add and then edit, select IPv4 settings (IPv4 Settings)-Add double-click to add(Subnet mask, gateway, DNS are set to the s
After the XAMPP is installed, open the browser, enter the URL "http://localhost" or "HTTP://127.0.0.1/", the browser appears on behalf of the successful installation.The default local path of the Web page is "C:\xampp\htdocs", the original file in this directory can be deleted all, and then create a new file yourself ("index.html" or "index.htm" or "index.php" is the default page).Apache is a server softwar
VMware in NAT mode, the virtual machine and the host can ping the why the virtual machine cannot surf the Internet?Programme one: 1, the network connection of the virtual machine is set to bridge or NAT can be host Network neighbor properties 3, double-click to open Local
accessD:\xampp\htdocs\mysiteThis project.Note: Replace the contents of the Red color section above with the virtual domain name you want to use, and replace the blue part with the path to the corresponding item store.Blog statement:All the articles in this blog, in addition to the title "reproduced" In the words, all the rest of the articles are my original or in the review of the information after the com
This address: http://blog.csdn.net/oneym/article/details/48050487OneymI. Description of the Environment1, using the PHP environment to use XAMPP2. Win7_64 bit System3, XAMPP installed in the C packing directorySecond, modify the relevant documents 1, register the host header in the systemUsing the text Editing tool C:\Windows\System32\drivers\etc\hosts to edit the file, add a row of records to the file as f
The principle of WWW server virtual host
The WWW server virtual host refers to a WWW server that uses a physical machine to act as multiple host names. For example, by a machine to provide http://www.company1.com, http://www.company2.com and other WWW services, and browsing
The principle of WWW server virtual hostThe WWW server virtual host refers to a WWW server that uses a physical machine to act as multiple host names. For example, by a machine to provide http://www.company1.com, http://www.company2.com and other WWW services, and browsing the WWW site users do not feel this way with t
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 one or three modesVMware offers three modes of operation, which are bridged (bridging mode)
This article refers to http://www.dreamdu.com/webbuild/(a post on website building and production tutorials)Using and configuring ApacheAfter installing Apache, we can find the Htdocs folder in the Apache installation directory, this folder is the path of the default Web site, students can save the page file in this folder, modify the view.Or you can create a new virtual directory:Using notepad++ (or Notepad) to open the D:/apache/conf/httpd.conf file
sudo a2dissite demo.neoease.com
5. Restart the Apache service to activate the virtual host
Sudo/etc/init.d/apache2 restart
WindowsWindows is the most market-share PC operating system and a development environment for many people. The VirtualHost configuration method is somewhat different from Linux and is suitable for native Apache,
How do I connect to a virtual host in VMware using SOURCECRT?Before entering the topic, we need to understand some concepts.
Some simple concepts that you should know
Intranet address
We first need to understand the so-called intranet address, in the following three forms of the beginning of the known as the Intranet address:10.x.x.x172.16.x.x to 172.31.x.x192.168.x.xSo the in
CSDN's new blog is fast.
In the afternoon, I was going to NFS the board, and found that the virtual machine could not be discovered.
Tested the network condition of the virtual machine:
root@ubuntu:/nfsboot/etc# Ping 202.193.89.254 This gateway is not up.
PING 202.193.89.254 (202.193.89.254) bytes of data.
From 202.193.89.253 icmp_seq=1 destination Host unreach
:#ServerAdmin#ServerName#DocumentRootThen, modify the conf/extra/httpd-vhosts.conf configuration file,And then how to modify it?First modified: VirtualHost1 namevirtualhost *:802// change to 3 namevirtualhost 127.0.0.1Then modify: VirtualHost and directory, as I modified this example:12ServerAdmin [email protected]com3DocumentRoot "D:/xampp/htdocs/www"//to correspond to the directory name below and set directory permissions4ServerName Www.51venus.com5
directory of Web site files # ServerName is a website domain name that needs to be consistent with DNS-directed domain name #
3. Activating the virtual host configuration via A2ensite
sudo a2ensite demo.neoease.com
4. Open Directory/etc/apache2/sites-enabled/, you will find all active virtual hosts, can be logged off via A2d
the Internet!
Original Address: the website is written by PHP program, why do I say to choose the Linux system PHP virtual host? "
related reading:" I am a G powder, has been concerned about Google, recently Google has some little gestures, probably a lot of people do not understand "
related reading:" machine learning leads to technological innovation in the field of cognition, so how can the SaaS i
First, install the Xmapp. When you are finished installing, you can start the service (database and server)Second, to configure their own virtualhost1, the system host file to join the domain name of the server (in the browser after entering the domain name will be first through the host file) sudo nano/private/etc/hosts (can also be opened with vim for editing)2.Configure Apache to open the Apache configur
Httpd-vhosts.conf is turned on, the default httpd.conf default configuration is disabled (ensure that the httpd-vhosts.conf file also opens the virtual host configuration, see 3rd), the domain name to access this IP will all point to vhosts.conf The first virtual host in the.1, first modify the C disk windows\system32\
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.