More than 20 days of preparation-case audit down, the space is not stable, the site a lot of problems, not open slow is the wrong page, so change a host, moved back to the domestic finally stabilized, the middle encountered a lot of problems. Now for everyone to share the next Jasper blog site move process it.First to the original host space back up the site data:There are two types of backup data: Backup o
PHP gets a lot of remote host file content methods, such as: File_get_contents,fopen and so on.
But if the same domain name corresponds to a different IP, for example demo.fdipzone.com corresponds to 3 IP192.168.100.101, 192.168.100.102, 192.168.100.103.
You cannot use file_get_contents to get the content of 192.168.100.101 because it is assigned to different hosts based on the load balancing principle
1, support multiple domain namesFor example, let mail.jbxue.org, smtp.jbxue.org, and pop3.jbxue.org all point to the same virtual host, which can be written as:
Copy Code code as follows:
ServerName mail.jbxue.org
Serveralias smtp.jbxue.org pop3.jbxue.org
ServerName is used to specify preferred domain names, and other
Using domain-based virtual host configuration is a popular way to configure multiple domain names on the same IP and access through 80 ports.(1) Configure 192.168.1.215 This address on the fifth interface of the NIC Eth0:(2) Configure the/etc/hosts file, the 192.168.1.215 corresponding domain name is as follows:Do a pi
In web development, it is often necessary to visit a site in the local environment, such as http://localhost or 127.0.0.1. However, if there are more local sites, you have to do something else, such as port settings. The results are not easy to remember.I use the local Ubuntu+nginx environment, Nginx allows to set up multiple domain names, only need to point to a different storage location. So, how do you set up a
, this paragraph in the document is not, and then look down, return to the default is the host mechanism, and any host access,
In this case, we can use the domain name binding to run the Tornado application, and support multi-domain name, because that is a string of regular, on the basis of the example just added a
One server installed Apache, how to bind multiple domain names and website content? The simplest way of course is to have different stations with different ports. However, you need to add a port number after the domain name to access it, not directly to the domain name. Another way is to use the host header to virtual
Hostname configuration/etc/sysconfig/network hostname can not be changed to the form of the domain nameShell>vim/etc/sysconfig/networkNetworking=yesNetworking_ipv6=noHostname=mail1.gz.comLocal domain name resolution configuration is often used for testing, of course, in a system of their own internal use is also very commonShell>vim/etc/hosts192.168.2.10 mail1.gz.com192.168.2.20 mail2.gz.comDNS configuratio
SharePoint applications, often need to configure a dual domain name, for different authentication methods to provide access to the portal, below a brief introduction, how to configure a dual domain name for SharePoint as a host header;Configure a host-based header for a dual domain1. Test sites that could have been acc
The company recently took over the project of a multinational enterprise, the enterprise single-domain, multi-site, and in the United States, Brazil, Japan, Tokyo, Singapore and other countries, the number of servers and client computers is huge. Due to the processing of some special faults, need to find out some of the network devices not in the domain and storage, NBU, and so on in the DNS server for forw
If you have more than one managed server, you can resolve the three-level domain name to different servers, you can achieve each server opened on the virtual host to send a temporary level three domain name for your users to use,
For example
You have a 3-level domain resolution
*.host1.abc.com
To the IP on the ma
new nets, 3 business, 4 intermediate frequency
Isbyhost varchar (1) is not a virtual host gift, Y is yes, n is not
Hosttype varchar (100) When the host is presented, the type of the host is not presented as empty
Byid int when the virtual host is presented, the ID of the virtual h
Configure a virtual host based on domain name resolution1. Prepare the siteOur site unified into the/www/vhosts/, each site root directory name is the same as the domain name, specifically as follows.Create a new www.stu31.com site root directory[Email protected] extra]# mkdir/www/vhosts/www.stu31.comHomepage of new WWW site index.html[Email protected] extra]# ec
apache2.2.x version1. Note The doucumentroot in the master configuration file/etc/httpd/conf/httpd.conf" /var/www/html "2. Remove the main configuration file namevirtualhost the previous comment, add the local host name192.168. 136.131:3. If the servername is commented, or the default is localahost:80 or 127.0.0.1:80, it will be an error, but does not affect the use of the virtual host" stopping httpd:
During web development, you usually need to access websites in the local environment using http: // localhost or 127.0.0.1. However, if there are more websites on the local machine, you have to perform other operations, such as port settings. The results are hard to remember.
I am using a local ubuntu + nginx environment. nginx allows multiple domain names to be set. You only need to point to different storage locations. Then, how should we set a
To configure the/etc/hosts file, the 192.168.1.209 corresponding domain name is as follows:192.168.1.209 www.name1.comEdit the configuration file for each domain name: ServerName www.name1.com DocumentRoot /var/www/html Options Indexes FollowSymLinks AllowOverride None Require all granted CentOS 7----Apache
1 httpd.confOpen ithttpd.confSearch for Characters "# Virtual hosts, remove the comment from the following line as follows. The aim is to makeApacheLoad after reboothttpd-vhosts.confFile. 2 Openconf/extra/httpd-vhosts.confNamevirtualhost *:80//enable domain-based virtual hosts, if not, only the first oneVirtualHostThe configuration item will take effect. [email protected]. com/webmaster mailbox.DocumentRoot "D:/apache2.2/docs/ok"//Virtual
This is my real thing. I started buying their company's domain name, virtual hosting and other products before 10.First say virtual host: Often crash, replace the IP address, replace the address also forget, also silently change, there will be no mail, not to mention SMS notice you;Domain name: I bought them a company's domai
Apache's virtual hosting service means that a machine is virtualized into multiple Web servers. Specifically, we can use the virtual hosting service to assign two domain names to the same server, and visitors can access them as long as they enter the domain name. For example, in this machine, we configure www.aaa.com and www.bbb.com. Domain-based virtual hosting
Although we have been able to access the local site through localhost, in order to improve the grid, we can modify the host file, set a favorite domain name to point to the local site, it is not more tall.Clear requirementsThe configuration allows us to access the local Web site via http://a.com.Modify HostWindows users inC:\Windows\System32\drivers\etcThe file named hosts is found in the directory. Due to
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.