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
1. Handling Iframe adaptive height under the same domain name
Copy codeThe Code is as follows: Of course, here I use Asp. Net MVC. Here src is set as the routing structure.Copy codeThe Code is as follows:
When an iframe nested page is loaded, the onload event is used to obtain the height of the page nested in iframe, and then the height is assigned to Iframe.2. Iframe highly adaptive during cross-Origin C
A domain name can correspond to a maximum of several IP addresses. , an IP address can bind several domain names.
1, that is, usually the case of a domain name at the same time can only correspond to an IP address.
However, in the domain Name service provider, you can hav
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
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 ar
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
Lighttpd is also a lightweight and good web server. Like apachehttpserver, when I first used lighttpd in, lighttpd supported flv streaming media playback and anti-leeching, so we need to use it. Today, we will focus on how to configure multiple virtual hosts and domain name settings. Take Lighttpd V1.7 as an example:1. Configure multiple virtual hosts
Open the etc/Lighttpd. conf file in the lighttpd installation directory, and add the following sectio
Good morning to everyone about htaccess and second-level domain names. The problem is that the website has a second-level domain name, which can be accessed normally now, but the second-level domain name is accessed without www, the following are. htaccess code RewriteEngine nbsp; onRewriteBase nbsp; RewriteCond nbs
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
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
How does php add domain names to images in the editor? /*** Replace the image in fckedit with the domain name * @ paramstring $ content the content to be replaced * @ paramstring $ the domain name to be added to the image in the strUrl content * @ returnstring * @ eg php to the editor adding
://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
By default, the site root of Phpstudy is in its own WWW directory, such as F:\phpStudy\WWW, where the address can be HTTP://127.0.0.1/or http://localhost/The following is what we want to achieve is to create multiple sites, binding their respective domain name, so that we can do a number of project development, non-impact.
Note: This article explains the full version of Phpstudy, and other versions may not work or be different.
1. Open Phpstud
In general, large sites will be static resources such as Js,css,logo pictures and other resources distributed deployment, and the use of independent domain name, namely static and dynamic separation. Distributed deployment can alleviate the load pressure on the application server, which is easy to understand, but why can I speed up the browser concurrent loading by using a separate domain name?1, the browse
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
1. Unfiltered scripts in Sina blogLet's just put it simple. I found it some time ago when I tried to use the sina domain name to switch to google for cheating.Because the PR value of blogs is generally high, and Baidu and Google have a large weight, I am engaged in search fraud.I want to use sina and sohu's blog domain name to switch to my site. Later I found that the place of the sina friendship connection
),),
If you want to access a comment under the blog the URL will be: http://test.php.net/comment-1.html
Local Server:
I. It is not enough to set the test.php.net second-level domain name in the YII configuration. You also need to resolve the test.php.net second-level domain name to the program server in the DNS server. You can add it at the end of hosts.
127.0.0.1 www.php.net test.php.net
This article is only for operation, explain the explanation section to be updated.1. Modify Nginx configuration file (my profile is in/etc/nginx/nginx.conf)[[Email protected] ~] # Find/-name nginx.conf [[Email protected] ~] # vim/etc/nginx/nginx.conf Nginx. approximate structure of the Conf configuration file:... http{ server{ ... #一个server结构可以对应一个域名 } include vhosts/*conf # Add this sentence, all new domain
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.