Today, the php version of the server is upgraded to 5.4.4, and a previous project is switched to apache. the dynamic second-level domain name resolution is implemented using. htcaccess, sharing the CI framework Apache
The code is as
I stated before: Mr. Smith is not very clear about the concepts of "second-level domain names" and "sub-stations". If this article is a little useful to you, he will keep a smiling face; if not, if you think it is completely time-consuming, please
Baidu second-level domain name root permission Injection Vulnerability
Https://jpaas-edu.baidu.com/the place where the invitation code is entered for this site is injected. Although there is a verification code, the verification code is not
Some service providers now provide the service of registering a top-level domain name and sending 20 second-level domain names, but some webmasters may feel that it is not enough.
Program Make your own second-level domain name, just like 126.com, 12
Winxp OS:
C:/Windows/system32/Drivers/etc/hosts
Add a line like:
127.0.0.1 Hangzhou. localhost
127.0.0.1 Xihu. localhost
Linux OS:
First, you have a top-level domain name with wildcard domain name resolution, such as: domain.com
Next, enable
Early website planning is very important. Many websites divide static resources and dynamic pages, such as img, by domain name. Here, we use wordpress as an example. We also support uploading all the graphs to a second-level domain name, such as img.
Generally, the solution for small files is to directly read the file on the server and then output the file. This avoids the exposure of the file address. This is a solution. What I want to talk about now is to use the TransmitFile method to output
I want to summarize the related information .. I accidentally discovered that my eldest brother had already done the work. Haha. You don't need to write it.
Reference: http://hi.baidu.com/langshen/blog/item/8baf778b92360817c8fc7a8e.html
The second-level domain name mechanism is not conducive to the search engine'sI have heard a sigh. So far, my blog has only been indexed on the homepage by Google,ArticleI did not accept one. Of course, the article was not accepted.The reason for
Add the following content at the end of httpd. conf:
CopyCode The Code is as follows: rewriteengine on
Rewritemap lowercase INT: tolower
Rewritemap vhost TXT:/usr/local/etc/Apache/vhost. Map
Rewritecond $ {lowercase: % {SERVER_NAME} ^ (. +)
As long as the space supports wildcard domain name resolution, there is no need for the server script language or DNS, you can use the front-end code to construct an unlimited second-level domain name:
Biyuan free second-level domain name // Global
Generally, the solution for small files is to directly read the file on the server and then output the file. This avoids the exposure of the file address. This is a solution. What I want to talk about now is to use the TransmitFile method to output
Today, the php version of the server is upgraded to 5.4.4, and a previous project is switched to apache. the dynamic second-level domain name resolution is implemented using. htcaccess and shared.
The code is as follows:
AuthName "yousite Website
In Asp.net 1.1, for how to share the login status in the form Authentication Mode of the second-level domain name, refer to the following
Article :
Http://www.cnblogs.com/caomao/archive/2005/07/05/186606.html
The implementation method in
I have already used the second-level domain name redirection for asp, but I can't use another method: I can't use the Redirection Program for front-end JS and ASP, the program has been debugged but cannot be switched. I don't know why. Please help
Dedecms automatically converts the uploaded image address to a second-level domain name addressFind the file/admin/soft_add.php. This is your background Directory. Find row 167 and add the following code:$ Newpic = 'http: // upload.111cn.net/'; your
1. Bind the domain name to our host IP address from the domain name server provider1.1 Third-party domain name resolution, such as dnspodI. DNSPod registered users Open DNSPod website (http://www.dnspod.cn), according to the requirements to fill in
Basic Ideas:1. Domain Name supports wildcard resolution, that is, resolve A record *. Domain Name. com to the server IP address, bind it to the server IIS, and the Host header is blank when binding;2. to implement a complete second-level domain,
Copy codeThe Code is as follows:AuthName "yousite Website Coming Soon..." // if you want to give your Website Access PermissionsAuthType BasicAuthUserFile D:/xxx/. htpasswd # If you want to set password access how to generate. htpasswd can access
For example,/bbs/301 redirects to a new second-level domain nameI directly added a bbs. conf file for lnmp to/usr/local/nginx/conf.Add an include bbs2.conf entry in the conf configuration of 111cn.net;Restart completed.The content of bbs. conf is:
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.