again, the browser will first pop up the authentication dialog box, only the correct user name and password can be entered to access the page3, domain-based virtual hostUse a httpd server to build two virtual web hosts www.benet.com and www.accp.com with an IP address of 192.168.30.15(1) Provide domain name resolution for virtual hostIn reality, you need to register the
Today in the study of PHP, there is such a requirement: an IP (such as: 127.0.0.1) and multiple domain names (virtual host) binding, the following is my solution:
Solution One: differentiate the different virtual hosts through the ports
① the way to bind a site
1. First Develop your own website (d:/myblog (stored in the D-disk MyBlog directory))
2. Configure the httpd.conf file (stored in the Conf fol
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
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
Experimental background:
Contoso is currently a company that provides virtual hosts. Xiaonuo and Dreamfire want to request a virtual host on Contoso to provide Web services to their companies. The domain name required for the application is www.xiaonuo.com and www.dreamfire.com respectively. To conserve IP addresses, decide to use host headers to differentiate b
Site SEO work and technology to create a site like the need to integrate the various properties of the site. I in the previous Web site SEO work cautious use of a few strokes and the correct work steps have been to the SEO work deployed to share.
And today to talk about is a people often overlooked things, domain names and host in the role of SEO what? Just as a company that requires rigorous interview
believe that there are many programmers do not know how to create their own web site to publish to the network, in fact, this is not complicated, as long as you have a domain name and server, everything is so simple. Where does the domain name and server go? Of course, go to the domain name and the server provider to apply. Most of the
Don't say much, we look at the code directly
Gets the domain name or host address
echo $_server[' Http_host '].
The above is the entire content of this article, I hope for everyone's study or work to bring certain help.
By default, the Tomcat application directory is the WebApps directory under the Tomcat base directory, the http://ip/project name is required to access the project after accessing the WebApps directory, and if you want to configure Server.xml directly, modify
Create multiple virtual hosts from a domain name
Dation= "false" >Ation= "false" >
By default, Tomcat defines the access log to Logs/localhost_access_log,
Prefix= "Localhost_access_log." suf
Linux can ping IP but cannot ping host domain name resolution reprinted December 25, 2013 10:24:27 13749.vi/etc/nsswitch.confhosts:files Dnsnetworks:files changed to: hos Ts:files DNS Winsnetworks:files if not the same, in the hosts: the original line after the addition of a wins on the line. --------------------------------------------------------------------------------------------------------------- ----
--------------------------------------------------------------------------------------------------------------------------------------------------------------Vi/etc/nsswitch.confHosts:files DNSNetworks:filesChange to:Hosts:files DNS winsNetworks:filesIf not the same, in the hosts: the original line after the addition of a wins on the line.--------------------------------------------------------------------------------------------------------------------------------------------------------------R
The early SSLv2 was designed according to the classic PKI (public key Infrastructure), which by default assumed that a server (or an IP) would only provide a service, so at the time of the SSL handshake, the server side could be sure which certificate the client was requesting.However, it is not expected that the virtual host has developed vigorously, which resulted in an IP will correspond to multiple domain
In 3.17 days have written an article about the APAHCE based on the domain name, port, IP address 3 ways of virtual host implementation. The principle is the same, now record Nginx virtual host These three ways of implementation.The system version is Rhel5.6,nginx version 1.1.6.1. Domain-based:Based on the way the
About Apache:Apache HTTP Server is an outstanding representative of open source software projects, providing web browsing services based on standard HTTP network protocols and maintaining over half of the Web service area over the long term. Apache servers can be run on Linux, Unix, Windows and many other operating system platforms.The main features of Apache:1. Open source code;2. Cross-platform application;3. Support various WEB programming languages;4. Modular design;5. Very stable operation;
Host reliability, speed, function, host access speed, the virtual host should support as many IIS concurrent number and traffic, preferably without restrictions, domain name popular easy to remember, catchy, preferably include keywords, should not be too long.
host
to update ad support for RODC, error can be ignored 650) this.width=650; "Title=" @ZXREZ2K) (4}@k@omfqq1za.jpg "alt=" wkiol1oth5pizaalaaeuly_qgpy182.jpg "src=" http:/ S3.51cto.com/wyfs02/m02/37/bc/wkiol1oth5pizaalaaeuly_qgpy182.jpg "/> 8 now says standalone server 08 joins to an existing domain and is promoted to an additional domain controller. 650) this.width=650; "Title=" []0{2~2km9v5 5RCX] 2_v2o.jpg "a
update ad support for RODC, error can be ignored 650) this.width=650; "Title=" @ZXREZ2K) (4}@k@omfqq1za.jpg "alt=" wkiol1oth5pizaalaaeuly_qgpy182.jpg "src=" http:/ S3.51cto.com/wyfs02/m02/37/bc/wkiol1oth5pizaalaaeuly_qgpy182.jpg "/> 8 now says standalone server 08 joins to an existing domain and is promoted to an additional domain controller. 650) this.width=650; "Title=" []0{2~2km9v5 5RCX] 2_v2o.jpg "alt=
The domain name of jingbo has been changed from essentialblog.cn to jingpin.org. The following describes how to change the domain name.
I. Operations on cpanel:
You can perform the following four steps on the cpanel of the Host:
Step 1: add additional domain names
Find the "Additional
of IPv4 addresses to which the Internet host specified by hostname resolves. parameter hostname The host name. returned Returns an array of IPv4 addresses or FALSE if hostname cocould not be resolved.
Gethostbyname ($ hostname)// AccordingDomain NameObtainOnly the first IP address is returned.
Gethostbyname-Get the IPv4 address corresponding to a given Internet host
Configuration of the virtual host
Virtual host configuration based on IP address
Listen 80
Documentroot/www/jb51
ServerName www.jb51.net
documentroot/www/jb512
ServerName www.jb512.org
Virtual host configuration based on IP and multi-port
Listen 172.20.30.40:80
Listen 172.20.30.40:8080
Listen 172.20.30.50:80
Listen 172.20.30.50:8080
Documentroot/www/jb51-80
Serve
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.