Wrote an extension to share to the friends who need it. 0x01 How to use In the {Xxxx}arearegistration.cs file in the MVC area, such as ProjectsAreaRegistration.cs Using Dsvisual.extensions; Namespace Dsvisual.WebApp.Areas.Projects{public class Projectsarearegistration:arearegistration{public override string AreaName{Get{return "Projects";}} public override void Registerarea (AreaRegistrationContext context){Context. Mapsubdomain ("Projects", true);}}} 0x02 extension Function Source code An
In Fask, you can deploy multiple subdomains by using wildcard subdomains. here we will explain how to configure multiple subdomains in a Python Flask framework. For more information, see
Flask subdomain name
It is generally used for a small number of subdomain names. a module corresponds to a subdomain name. Let's take a look at the following example:
Modules.
flask cannot guess the subdomain part until you know the existing server name, if you want to use a subdomain, this option is necessary and is also used for session cookies.
Keep in mind that not only does flask exist without knowing the subdomain, your browser also has this problem. Most modern web browsers do not allow the server name to contain a bit of cros
node. that is to say, the domain name is the name of the top node in the domain. for example, the top of the zhuhai.gd.cn domain is a node named zhuhai.gd.cn. in DNS, each domain is managed by a different organization. each organization can divide its domains into a certain number of subdomains and delegate these subdomains to other organizations for management. the domain can include both the host and other domains (its subdomains ). the domain name is used as an index in the DNS database. any
How does the https://www.dnspod.cn Add a record? 1. Under what circumstances will a record be used?
[If you want to direct a domain name to an IP address, you need to add a record]
2. How to add a recordA. enter a subdomain name in the Host record (for example, to add www.123.com resolution, you only need to enter WWW in the Host record. If you only want to add 123.com resolution, leave the Host record blank, the system will automatically enter "@" i
that there is no PTR record in the forward parsing, and the A, MX, and CNAME records are not required in the reverse parsing library.Create a subdomainHere we still take the parent domain (192.168.2.18) as the primary DNS server from the DNS server as the subdomain server (192.168.2.29)We create a subdomain zone file in the Subdomain server edit/etc/named.rfc191
:
Iterative Queries (tcp:53)
Recursive query (udp:53)
Query order for DNS:
1.DNS Cache
2. Local Host File
3.DNS Server
IP and FQDN correspondence: (FQDN: Fully qualified domain name)
ICANN: The name Assignment Agency, which manages all domain names on the internet with his or her subordinate authority
One IP can have multiple domain names (one of the implementation principles of the HTTP virtual host)
A domain name can have multiple IPs (one of the principles of clu
A Web site with several or n pages, they are identified with the URL, we do site optimization, nothing more than to make these URLs as far as possible to get a better ranking, did the optimization of the people know that the URL structure on the site optimization is also influential, then the child domain name and subdirectory which is more suitable for optimization? Now let's look at the pros and cons of the domain name and subdirectory:
The difference between a child domain name and a subdire
divide its domains into a certain number of subdomains and delegate these subdomains to other organizations for management. the domain can include both the host and other domains (its subdomains ). the domain name is used as an index in the DNS database. any domain name in the subdomain is considered as part of the domain.
In fact, the host is a domain, and the domain name is only an index in the DNS database. "host" can be indexed by the Domain N
Subdomain AuthorizationSubdomain Authorization: The name server of each domain is authorized by its superior name server in the parsing library;Similar to the root domain authorized TLD:. com. In NS ns1.com.. com. In NS ns2.com.Ns1.com. In A 2.2.2.1Ns2.com. In A 2.2.2.2Xmdb.com. On the. COM name server, add a resource record to the resolution library:Xmdb.com. In NS ns1.xmdb.com.Xmdb.com. In NS ns2.xmdb.com.Xmdb.com. In NS ns3.xmdb.com.Ns1.xmdb.com. I
How to solve the cookie problem of different php subdomains with the same name. $ _ COOKIE is a very useful thing in php, but sometimes we encounter different subdomains under the same domain name, so there will be a problem that only one cookie can be retained, the following small series will give $ _ COOKIE a very useful thing in php, but sometimes we will encounter different subdomains under the same domain name, in this case, you can retain only one cookie. the following section will introdu
$ _ COOKIE is a very useful thing in php, but sometimes we encounter different subdomains under the same domain name, so there will be a problem that only one cookie can be retained.
$ _ COOKIE is a very useful thing in php, but sometimes we encounter different subdomains under the same domain name, so there will be a problem that only one cookie can be retained.
PHP's hyper-global variable $ _ COOKIE brings a lot of convenience and may also cause confusion in some cases. For example, if a cooki
PHP's hyper-global variable $ _ COOKIE brings a lot of convenience and may also cause confusion in some cases. For example, if a cookie with the same name exists in the root domain and subdomain, $ _ can only save one COOKIE. Which one should it be?We recommend that you use the longest RFC, which has the highest precision, but different browsers have different processing methods. I only tested Chrome. In Chrome, cookies with the same name in the r
$ _ COOKIE is a very useful thing in php, but sometimes we encounter different subdomains under the same domain name, so there will be a problem that only one cookie can be retained, the following is a small series for you to introduce.
PHP's hyper-global variable $ _ COOKIE brings a lot of convenience and may also cause confusion in some cases. For example, if a cookie with the same name exists in the root domain and subdomain, $ _ can only save one
Flask Sub Domain
Generally used for a small number of sub-domain names, a module corresponding to a subdomain. Let's take a look at the following example:
modules.py:
From flask Import blueprintpublic = Blueprint (' public ', __name__) @public. Route ('/') def Home (): return ' Hello ' Flask ' App.py:app = Flask (__name__) app.config[' server_name '] = ' example.com ' from modules import Publicapp.register_ Blueprint (Public,
The role of a wildcard (wildcard)
DNS wildcard domain name resolution can also be understood as a resolution record with wildcard characters. a dns record with wildcard characters is used to provide resolution request response methods for non-existent subdomains. For example, a domain example.com exists. If we set the wildcard record * .example.com, all subdomains that do not exist in the example.com domain, for example, abcd.example.com and efgh.example.com all point to example.com. During the
A good site, should be good use of their own site resources. Choose to use a subdomain or a directory to reasonably distribute their site content, the site in search engines have very good help, good use will be the weight of the site to improve the use of bad will have an impact on the site, so say to make good use of their own site do not abuse the subdomain and directory. Now Baidu has for independent su
homepage Round-Robin the src hash value of iframe. Once it is found that it has changed, hash is used to obtain the required information.The implementation of this method is complex and has limited functions. In IE and FireFox, the URL length can be about 2000 characters. It may be enough for a common requirement. Unfortunately, it is far from enough to transmit a large amount of data. Compared with the solution we will propose later, its only advantage may be that it can make asynchronous requ
The WEB server is Nginx, and you want to configure a generic subdomain name resolution. In fact, a little modification, configure a pan-domain name resolution is not difficult. Does not affect the primary domain name, domain.com and www.domain.com root is still the WWW directoryThe subdomain sub.domain.com's root wants to be placed in the Www-sub directory, and the other sub domains are equally Solution and
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.