A site has a primary domain name, multiple subdomains, a common login, and later found
The primary domain name can be logged in, sub-domain login, the primary domain name after login in the subdomain is still not logged in, and in the sub-domain Click Login will jump back to the subdomain home page, not to go to login pages
How to solve it?
With theLaravel 5.2.*
Such as: Primary domain nameqiyue.ioSub
www.tunnel.mobi ngrok public services, similar to ngrok.com, I also experimented.
Write a ngrok.cfg that reads as follows:
SERVER_ADDR: "tunnel.mobi:44433"Trust_host_root_certs:true
Execute the following command with Ngrok latest client version 1.7:
$ngrok-subdomain Tonybaiexample-config=ngrok.cfg 80
A tunnel can be successfully established for this machine to externally provide "tonybaiexample.tunnel.mobi" services.
Tunnel Status OnlineVersion 1.7/1
How to write the paging code of the php article list? $ SQL nbsp ;= nbsp; "SELECT nbsp; * nbsp; FROM nbsp; 'link' nbsp; WHERE nbsp; 'subdomain ' nbsp ;! = Nbsp; '' nbsp; ORDER nbsp; BY nb php article list paging code how to write?
$sql="SELECT*FROM`links`WHERE`subdomain`!=''ORDERBYiddescLIMIT100";$rows=$db->getData($sql);foreach($rowsas$row){echo''.$row['title'].'';}
I will write the article on th
entities in the core network's electrical path domain and IP Multimedia subdomain in the layered model 2. Because the group domains in the UMTS Release5 reference model are not constructed according to the softswitch concept, the main functional entities in the group domains are not listed in the layered model in Figure 2. From the layered model, we can see that MGCF (Media Gateway Control Function), CSCF (call status control function), and MSC serve
or provider.
Note: an ESB node is actually an ESB server that has network capabilities and can be interconnected with other instances.
The ESB covering the entire company's network is not a big brother.
The Chief Information Officer may say, "Oh, no! I don't want a 'ubiquitous 'tool that allows anyone to browse and access anything in the company. administrators may say, "How do I manage and supervise ?", "Other administrators can modify things on my servers. This is impossible," or "What s
domain): Assume that there are two domains, a.com, B .com, and a.com, which are authorized (registered with the upper-level, that is. com), and B .com is not authorized. In this case, if a host in a.com needs to access www. B .com, access will fail, however, if a.com knows who the DNS host for the B .com domain is, even if B .com is not authorized, a.com's DNS can set a partial forwarding, send all requests for parsing the B .com domain in this domain to the DNS host of the B .com domain.Partia
the lifecycle domain is freed, AUTOFAC can automatically handle the release of component resources.However, the container exists throughout the application life cycle. If you parse a large number of components directly from the container, it can cause many components to wait to be released. This is not a good practice and usually leads to memory leaks.The alternative is that each time we create a sub-life cycle domain from the container. When you finish parsing the component from the
:
{% extends 'admin/master.html' %}{% block body %} Hello World from AnotherMyAdmin!
If AnotherAdminView adds the parameter endpoint = 'xxx', you can write it as url_for ('xxx. text'). Then, the page URL changes from/admin/anotheradminview/to/admin/xxx.If the parameter url = 'aaa' is specified at the same time, the page URL will be/admin/aaa, And the url priority is higher than the endpointAdmin
Copy codeThe Code is as follows:Class Admin (app = None, name = None, url = None,
domain. CN is a geographical domain.
3. Subdomains at all levels (subdomain)
In addition to the root domain and top-level domains, other domains are called subdomains. A domain can have more than one child domain.
4. Hostname (host name)
On the far left is the domain host name.
5. Reverse Domain (IN-ADDR.ARPA)
The reverse domain uses a byte value of an IP address to represent a subdomain, so the reve
Applicable to Asp. Cookies set for the primary domain name are shared with each subdomain name. They are applicable to second-level domain names such as blogs. This problem is solved by having many posts on the Internet. Note:
1. When you have a Cookie group (or Cookie dictionary) that uses the Domain attribute to specify a Domain name, when you modify or add new members to the group, you must add Resonse after the operation. cookies (cookieName ). d
forwarder has a problem, it will not be resolved.First: first request the forwarder for forwarding (please use the forwarder for recursion). If the forwarder does not have a response, find its own root, and then start standard DNS resolution, that is, iterative query.Partial forwarding (only forwarding DNS resolution for a domain): assume that there are two domains, a.com, B .com, and a.com, which are authorized (registered with the upper-level, that is. com), and B .com is not authorized. in t
middleware can be constrained to the routing request, for the daily development is very useful, such as doing auth verification, can be directly through the middleware to do the isolation:
Laravel
Route::middleware(['auth'])->group(function () { Route::get('user/profile', function () { // 使用 auth 中间件 });});
Iris
authentication := basicauth.New(authConfig)needAuth := app.Party("/user", authentication){ needAuth.Get("/profile", h)}
Sub-domain Routing
In Laravel, a routing group ca
/xxx)
URL: page URL, priority URL > Endpoint > class name
Path to the Static_folder:static directory
URL of the Static_url_path:static directory
Anotheradmin.html:
{% extends ' admin/master.html '%} {% block body%} Hello World from anothermyadmin! Click me to go to test view{% endblock%}
If Anotheradminview adds the parameter endpoint= ' xxx ', then this can be written url_for (' Xxx.text '), then the page URL will be/admin/anotheradminview/into/admin/xxxIf the parameter url= ' AAA ' is spe
. For example, the final cn in www.online.ha.cn is a top-level domain name, which is divided into different levels from the back to the front.
There are two top-level domain names on the Internet, one is Country Code such as cn, the other is Classification Code such as edu, org, net, com. Subdomain names under country top-level domains can also be classified by region or organizational structure.
To resolve the domain name, you need to search for th
Configure the server -- Nginx add multiple second-level subdomains and nginx subdomainsNginx multi-file configuration second-level subdomain name (recommended)
First, add resolution in your domain name console. Here we use adding a blog prefix as an example.
I use hichinaResolution settingsMediumAdd resolution
Host records: The second-level domain name you want Record Value: Your IP address
After the sub-domain name is saved, the first step is to
Article Title: DNS configuration example. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
DNS Server configuration example:
Note: The above example file is only used for demonstration. It is different from the actual content and may differ from the actual test. For basic DNS knowledge, see the PowerPoint slide file prepared by myself. The URL is the same a
name
Ip, _ := net.LookupIP("www.baidu.com")
fmt.Println(ip) //[111.13.100.92 111.13.100.91], find the ip address of the given domain name, you can find it by nslookup www.baidu.com.
}
Before explaining the following function usage, describe several noun meanings (refer to the following connection: http://blog.sina.com.cn/s/blog_7ff492150101kqbh.html):
Domain name resolution record A, CNAME, MX, NS, TXT, AAAA, SRV, explicit url, implicit URL meaning
1. A record (IP point): reso
required Ngrok software from this man's website (http://www.tunnel.mobi/), Windows, Linux, Mac platforms have OH. My is the Windows environment, download after decompression is a ngrok.exe file. Then, you need a configuration file, as well as a download, and a ngork.cfg file after the download.second, the operation of servicesAfter downloading the two files, we can easily find a directory to put it on the line, for example, I put on the D-Drive, so it is OK: Then, open the CMD terminal, enter t
some checks (such as the expiration date and Path). If it has not expired, then read and retrieve its value, restore the user information, and set the thread. currentprincipal. identity. set the property value of name to the restored user name, and check whether the user has the permission to access the page of the current request. If so, the execution result of the page is returned to the user's browser.
The process is simple, right? Validation principles of multiple sites in the same domain
Public services, similar to ngrok.com, I also experimented.Write a ngrok.cfg that reads as follows:SERVER_ADDR: "tunnel.mobi:44433"Trust_host_root_certs:trueExecute the following command with Ngrok latest client version 1.7:$ngrok-subdomain Tonybaiexample-config=ngrok.cfg 80A tunnel can be successfully established for this machine to externally provide "tonybaiexample.tunnel.mobi" services.Tunnel Status OnlineVersion 1.7/1.7Forwarding Http://tonybaie
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.