computer,
Morning Notes: The Domain environment of this instance has only one DC, so the uninstallation process is relatively simple. In complex domain environments, the order of uninstalling the AD domain is required. For example, in a domain environment where a subdomain exists, the subdomain, root domain, and forest root domain should be uninstalled in sequence. Otherwise, the
Fortunately, I saw the rising sun after the last day, so I was able to write articles here to get down to the truth. I recently made a project, we need to use a subdomain name to call an existing function under the primary domain name, so we thought of using jsonp to solve the problem. In our common projects, there are many friends who have such requirements, so I recorded it for future reference and hoped it could help a lot.
Fortunately, I saw the r
use the route name when generating URLs or redirection:
Copy codeThe Code is as follows:$ Url = URL: route ('profile ');$ Redirect = Redirect: route ('profile ');You can use the currentRouteName method to obtain the name of a route:
Copy codeThe Code is as follows:$ Name = Route: currentRouteName ();
Route Group
Sometimes you may want to apply the filter to a group of routes. You do not need to specify a filter for each route. You can use the routing group:Copy codeThe Code is as follows:Route:
This article mainly introduces a practical case of jquery to verify whether the mailbox format is correct, and uses regular expressions for verification. Interested friends can refer to us to see which mailboxes are available:
It is obviously impossible for us to make judgments by email address.-A complete Internet email address consists of the following two parts:Login Name @ host name. Domain NameSeparated by the "@" symbol indicating "at" (at) in the middle. The opposite party's login name
main findings of this study include:
Removal of unnecessary Coockie
Minimizes the impact of user response by minimizing Coockie volume
Note Set Coockie on the domain name of the adaptive level so that the subdomain is not affected
Set a reasonable expiration time. Expire time earlier and not removing Coockie prematurely will improve user response time.
28. Use no Coockie domain name for page contentWhen the browser requests
Web front End If you want to implement a cookie cross-site, cross-browser, clear browser cookie that cookie will not be deleted this seems a bit difficult, the following tutorial lets you completely get rid of Document.cookieSupercookie.js:Http://beta.tfxiq.com/superCookie.jsDemoHttp://beta.tfxiq.com/sc.html such as PHP: PHP Header (" strict-transport-security:max-age=31536000; Includesubdomains ");? Includesubdomains is essential because the super cookie uses the many subdomains
Provides various official and user-released code examples. For code reference, you are welcome to exchange and learn. Currently, when our domain name needs to be accessed with a port number, the sub-domain name deployment will not pass the port number.
At present, when we need to carry a port number to access our domain name, the sub-domain name deployment will not pass the port number.
Solution:
Find ThinkPHP/Common/functions. php line 878th.
$ Domain = $ key. (preg_match ('/\. (cn | com |
0, or ignore parameters, the Cookie expires at the end of the session (that is, when the browser is turned off).
Path:cookie a valid server path. When set to '/', the Cookie is valid for the entire domain. If set to '/foo/', the Cookie is only valid for/foo/directory and its subdirectories in domain (such as/foo/bar/). The default value is the current directory when the Cookie is set.
Valid domain name/subdomain of Domain:cookie. Setting a
'. The lower-case class name is used by default.
Category: if multiple views share the same category, they are all put into one dropdown (dropdown name = 'Category ')
Endpoint: If the endpoint is 'XXX', you can use url_for (xxx. index) or change the page URL (/admin/xxx)
Url: page URL, priority url> endpoint> class name
Static_folder: Path of the static Directory
Static_url_path: URL of the static Directory
Anotheradmin.html:
{% extends 'admin/master.html' %}{% block body %} Hello World from
This article mainly introduces about the Apache Advanced Configuration, has a certain reference value, now share to everyone, the need for friends can refer to
First, installation
Yum Install Httpd-y # #安装
Firewall-cmd--permanent--add-service=http # #防火墙配置
Systemctl Restart Firewalld # #重启防火墙
Second, the configuration file/etc/httpd/conf/httpd.conf
During the experiment, we should pay attention to the consistency of the security context
DocumentRoot "/var/www/html" # #默认发布目录
Dire
0x00 background
In this article, the Browser Security-same-origin policy and pseudo-URL domain mentioned the same-origin policy of the Browser, which mentioned that XMLHttpRequest strictly abides by the same-origin policy and cannot be requested from different sources. However, in practice, cross-origin resource requests are often required. For example, a subdomain name requests user information from a subdomain
names are domain names ending with "COM", "NET", "ORG", "BIZ", and "INFO", which are managed by foreign companies. A geographic top-level domain name ends with a country or region code. For example, "CN" represents China, and "UK" represents UK. Geographic top-level domain names are generally managed by various countries or regions.
Second-level domain name: second-level domain name is a geographical domain name based on top-level domain names, compared to China's second-level domain names, suc
Multi-domain ManagementI. For the independent management scope, establish the parent-child domain architecture, the Authority division, the continuous namespace;Two. group in the local domain: Members from the entire forest, subordinate to the local territory;Global group: Members are from the local domain and belong to the entire forest;Deploying subdomains650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M02/83/04/wKiom1doymrxxrQeAAD-xXTMAmY713.jpg "title=" 2.jpg " alt= "Wkiom1doymrxxrqea
window properties under the same domain. Causes of cross-domain problems: The URL of a website consists of a protocol name, subdomain, primary domain name, port number. such as https://github.com/, where HTTPS is the protocol name, www is a subdomain, GitHub is the primary domain name, the port number is 80, when in the page from a URL request data, if the URL of the protocol name,
study include:Removal of unnecessary CoockieMinimizes the impact of user response by minimizing Coockie volumeNote Set Coockie on the domain name of the adaptive level so that the subdomain is not affectedSet a reasonable expiration time. Expire time earlier and not removing Coockie prematurely will improve user response time.28. Use no Coockie domain name for page contentWhen the browser requests a static picture and sends Coockie in the request, th
resolution.With the Phalcon framework, because the first-in-one routing wasn't fully understood.I hope you will not hesitate to enlighten
Reference http://docs.phalconphp.com/en/latest/reference/routing.html#hostname-c ...
1. Get the current level two domain name:
php/** * Detect sub domain for routing */$sudomaininfo = explode('.',$_SERVER['HTTP_HOST']);define('SUBDOMAIN', array_shift($sudomaininfo));
2,
php $router->add('/:action', array( 'n
$sql = "Select * from ' Links ' WHERE ' subdomain '! = '" ORDER by id desc LIMIT "; $rows = $db->getdata ($sql); foreach ($r oWS as $row) {echo ''. $row [' title ']. '';}
The first page of the article call I will write, but to pagination do not know how to write
There is now a field title subdomain
Reply to discussion (solution)
Just find a page function to apply it.The approximate parameters are as
?[y/n]yWriteoutdatabasewith1new entriesdatabaseupdated8. Send the certificate signed by the CA server back to the client[[Emailprotected]~]#scp/root/httpd.crt[emailprotected]:/etc/httpd/ssl/the authenticityofhost ' 192.168.101.130 (192.168.101.130) ' can ' tbe Established. Rsakeyfingerprintisef:85:f8:aa:1c:de:41:5a:fd:93:8d:9f:83:f7:a2:ff. areyousureyouwanttocontinueconnecting (yes/no)? yPlease type ' yes ' or ' no ':yeswarning:permanentlyadded ' 192.168.101.130 ' (RSA) tothelistofknownhosts. n
impact on user response
Note: Set coockie on the domain name at the adaptive level so that the subdomain name is not affected.
Set a reasonable expiration time. Early expire time and do not clear coockie too early will improve the user response time.
28,No coockie domain name is used for page content
When the browser simultaneously requests a static image and sends coockie in the request, the server will not use these coockie in any way.
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.