Add one of the following server segments to the Nginx configuration file nginx.conf.
The code is as follows
Copy Code
server {Listen default_server;server_name _;return 404;}Orserver {Listen default_server;server_name _;return 444;}
Nginx's virtual host finds the corresponding virtual host configuration through the host value in the HTTP request, if not found? The nginx will send the request to the specified Default_server node for processing.
Through the
an instant, you can not see. hehe ~ ~ ~ ~
3, now to do is to put your space to create two different folders, respectively, as a two Web site directory. Like a opwer folder. A Myk3 folder. Content in the contents of two websites!
4. Start uploading the index.asp file you just made! Upload the index.asp file to the space root directory.
5, to your space will be two domain
First, the corresponding a record is determined in DNS,ABC in A 211.154.2.5Mail in A 211.154.2.5
This is about configuring the Apache virtual host under Windows:One, the configuration of virtual host requires 3 files1.apache/conf/httpd.conf2.apache/conf/extra/httpd-vhosts.conf (This ground version of Apache may not have, can be created by itself, or can not be this file,And the configuration directly written in Httpd.conf, written in extr
Today, when learning PHP, there is 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 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
For various reasons, we sometimes need to create multiple web sites on one IP address. In iis5, we may achieve this through simple settings.
In IIS, each webEach site has a unique identifier consisting of three parts for receiving and responding to requests:
(1)IP address(2) Port Number(3) Host header name.
In IIS, multiple independent web sites are created on an IP address. there are usually two methods. This article introduces the Host Header
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
Today I studied how to bind multiple domain names to a single host in Apache and use port 80. To put it bluntly, multiple websites are run on one host, and the website domain names are all port 80.
The specific method is as follows:
1. Go to the Apache conf directory and find httpd. conf. For example, my directory is c
Since Microsoft released ASP. net mvc and routing engine (System. web. since Routing), we have tried to let us understand that you can fully control the URL and routing. As long as you integrate with your application path for expansion, all problems can be solved. If you need to process data tags in the domain or subdomain, use Default.
Unfortunately, ASP. net mvc is based on virtual directories, but there are various requirements in actual projects.
How to bulk Add and modify bound domain names under the IIS environment1, close IISAdmin service and W3SVC service, can be closed from the service, you can also directly execute the command:net stop iisadmin/y;2, open "C:\WINDOWS\SYSTEM32\INETSVR", find MetaBase.xml, this is the place to store IIS information, including IIS configuration and site configuration are in this file, back up, prevent errors;
Find the domain name from the URL, the first thought is to use regular, and then find the appropriate class library. With the regular parsing there are many incomplete places, the URL has a domain name, domain name suffix has been increasing and so on. Google found several methods, one is to use the module in Python and the combination of the regular to resolve t
Apache integrates multiple Tomcat and one Tomcat corresponds to one application. Different domain names access different applications.
From: http://apps.hi.baidu.com/share/detail/20890923
To configure multiple Tomcat servers, you only need to change the 80, 8009, and ports to run n Tomcat servers on one server at the same time.
The following describes how to use one Apache to activate multiple Tomcat serve
For a new site, it is generally impossible to get the favor of search engines from the very beginning, especially for a site that has just been launched without any weight, in addition, some webmasters use second-level domain names as sub-stations. However, the search engine is not powerful and is not indexed, which undoubtedly causes problems for many webmasters, after the most basic website construction w
Background:
Http://jzywh.cnblogs.com/archive/2005/09/29/246650.html
Many of my online users see this article.Article, According to my method, but still did not get the desired effect, in fact, some problems need to be noted, in my previous article, I only proposed the core content of the solution to this problem, some friends may encounter some problems in practical use. In fact, they can solve the problems based on their own experience. Here I will help you list some points to help you solv
Youmi Bao can reset any user password (all domain names registered here can be hijacked)
RT
Domain Name merchant Security preemptible reset any user password (all domain names registered here can be hijacked)Password retrieval address: http://www.jinmi8.com/u/getpwd1.htmlI
Nginx binding multiple domain names involved in the technology for the URL rewrite, you can first understand the background of knowledge and then come to learn.Here is the domain name: www.sample.com for example1. Create the sample.conf file in the/usr/local/nginx/conf folder2. Write the following in it and Save:server{ Listen; serve
://www.shunping3.com:80" in the browser (must add port name)
Solution two: Distinguish different domain names through the servername end
1. Develop a new site D:/MYBLOG2
2. In the httpd.conf file, let Apache unblock 81 ports (add # or delete directly)
3. Add the configuration in the httpd-vhosts.conf file (note that the configuration and scenario one here are no
According to foreign media reports, the PC World website recently identified 100 longest-history Internet domain names, the first computer manufacturer symbolics registered symbolics.com.
In addition, HP's hp.com ranked ninth, IBM's ibm.com, sun's sun.com, and Intel's intel.com ranked Eleven, twelve, and thirteen respectively, both registered in March 1986. The following are the 100 longest-history Internet
has been accessed to the local d:\wamp\www\xxx.com directory, after you just put this site's files in this directory.7. If you want to add multiple virtual hosts, repeat the above actions.Wampserver Configuring Pseudo-staticBy default, Wampserver does not support pseudo-static, and we need to do some configuration1. Start the Wampserver service, left click on the lower right corner of the wampserver icon, open the Apache menu under the "httpd.conf" file;2. Search to find "LoadModule rewrite_mod
STRINGPREP.IN_TABLE_C6 (c) or STRINGPREP.IN_TABLE_C7 (c) or Stringprep.in_table_c8 (c) or STRINGPREP.IN_TABLE_C9 (c): Raise Unicodeerror ("Invalid Charac ter%r "% c) # Check bidi RandAL = map (stringprep.in_table_d1, label) for C in Randal:if C: # There is a RandAL char in the string. Must perform further # Tests: # 1) The characters in sections 5.8 must be prohibited. # This is table C.8, which were already checked # 2) If A string contains any randalcat character, the Str
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.