Apache mod_rewrite encounters a 404 error in URL rewriting failure caused by special symbols such as % 2F or % 5C (forward and backward slash ).
. Htaccess File
Http: // localhost/Application/Home/Index/index/url/http % 3A % 2F % 2Fwww.domain.com % 2 Fpage % 2F
When you access the above link, there is always 404, And the rewrite is invalid.
Http: // localhost/App
. htaccess file%{request_filename}-%{request_filename}-^ (. *) $ index.php/$1 [Qsa,pt,L]Http://localhost/Application/Home/Index/index/url/http%3A%2F%2Fwww.domain.com%2Fpage%2FWhen accessing the link above, the 404 is always present, and the rewrite is invalid.http://localhost/Application/Home/Index/index/url/http://www.domain.com/page/My local environment has been using the XAMPP, the server Nginx no problem, but Apache is very silent, always 404, rep
In recent days, when the interface was developed, Tomcat reported 400 errors and looked for the following reasons.Error cause : The parameters section of the URL contains/, the default tomcat is not supported URL parameters include:/(%2F), \ (%5c).parsing method : can be configured by adding dorg.apache.tomcat.util.buf.udecoder.allow_encoded_slash=trueMethod 1: Modify the configuration file, tomcat6/conf/ catalina.properties file Add a line dorg.apac
. Htaccess File
Http: // localhost/application/home/index/URL/HTTP % 3A % 2f % 2fwww.domain.com % 2 fpage % 2f
When you access the above link, there is always 404, And the rewrite is invalid.
Http: // localhost/application/home/index/URL/http://www.domain.com/page/
XAMPP that I have been using in the local environment, nginx on the server is no problem, but Apache is quite speechless, always 404, changed
Http://debian.printk.org/os-loongson/lenny_base_official.tgz downloading Debian
The size of the dragon core 2f is GB.
You can use $ fdisk-L for viewing, but here I only show that sda3 has 50 GB not allocated. $ Fdisk/dev/SDA can be used to repartition the hard disk. For more information, see fdisk partition usage.
After the division, I want to retain the original winning system and install Debian in sda2. $ CAT/proc/cmdline can be used to view the dis
. htaccess file[Plain]View Plaincopy
Rewriteengine on
Rewritecond%{request_filename}!-d
Rewritecond%{request_filename}!-f
Rewriterule ^ (. *) $ index.php/$1 [qsa,pt,l]
Http://localhost/Application/Home/Index/index/url/http%3A%2F%2Fwww.domain.com%2Fpage%2FWhen accessing the link above, the 404 is always present, and the rewrite is invalid.http://localhost/Application/Home/Index/index/url/http://www.domain.com/page/My
Click the button when performing a query operation when you install SOLR locally it's not responding. View Console Discovery URL Link report 400 error looking for half day discovery URL contains%2f%2f replaced with/after the browser address bar entered a successful visit, found that Tomcat default does not support URL parameters include "%2f", "% 5C ",
Workaroun
During the use of the Apache address rewrite mod_rewrite, it was found that when%2f (/) or%5c (\) appeared in the URL and path_info, it would be considered an illegal request and Apache would return directly to the "404 (Not Found)" error.In other words, Apache rejects the request directly before calling the Mod_proxy or mod_rewrite module, giving a 404 error.This is done primarily to prevent CGI security vulnerabilities, especially if the script uses
Some symbols cannot be passed directly in the URL, and if you want to pass these special symbols in the URL, they will be encoded. The encoded format is: The ASCII code of the% plus character, which is a percent percent, followed by the ASCII (16-binary) code value of the corresponding character. For example, the encoded value of a space is "%20". If you do not use escape characters, these encodings are treated as special characters defined in the URL. The following table lists some of the URL s
A recent project found that%2f's relative URL was identified, resulting in 404 errors.
Url:http://w3schools.com/xxx%2fxxx%2ftest.asp?name=stalecar=saab
This behavior occurs because Apache does not recognize the encode URL.
You can add allowencodedslashes on to the configuration file to resolve it.
DocumentRoot "/var/www/weble.org/app/webroot"ServerName weble.orgAllowencodedslashes onOrder Deny,allowAllow from all
There is also a solution is in the picture of the problem, call JS decodeURICompon
(S) command resets the corresponding block of address matching in level two cache to the invalid state. Because the level two cache retains the inclusion relationship with the data cache and the instruction cache, the data cache and the corresponding data in the instruction cache are not valid until the level two cache invalidation is written back, and the last two-level cache block is invalid.The invalid operation procedure is as follows:1. The processor reads the stag and status bits from the
No authentication method
After a correct client request is sent to the server, the HTTP server returns the 200 status code and directly returns the content.
Message example:
Request:
Get. http: // 10.127.194.3: 8061/voiceobjects .....
Return Value:
HTTP/1.1.200. OK .date:. Fri,. 28. oct.20 .....
Ii. Basic Authentication Method
The Basic Authentication and digest
If you want to define authentication, my personal preference is that authentication is an action to determine whether the real identity of the authenticated party matches the identity of the authenticated party or her Claim (Claim. The authenticated party must provide the relevant proof of identity to identify whether the identity is consistent with the claimed identity. In computer languages, the Identity
This article transferred from: http://www.cnblogs.com/lanxiaoke/p/6357501.htmlSummary Certification Simple introductionAbstract authentication is the improvement of the basic authentication, that is, the use of abstract instead of account password, so as to prevent the disclosure of account password in plaintext transmissionPrior to the summary certification is not very familiar with, but also thanks to the
thinkphp Auth Authentication analogy RBAC Better authorization authentication method (Auth class authentication) Auth class has been in the thinkphp code warehouse for a long time, but because there has been no tutorial, few people know it, it is actually more convenient than RBAC.RBAC is based on the node authentication
Chapter 2 User Authentication, Authorization, and Security (1): Select Windows and SQL authentication, AuthenticationSource: Workshop
Without the consent of the author, no one shall be published in the form of "original" or used for commercial purposes. I am not responsible for any legal liability.
Previous Article: http://blog.csdn.net/dba_huangzj/article/details/38656615
Preface:
SQL Server has two t
, the CAS-Client1 redirects the request to the CAS-Server and passes the Service (that is, the destination resource address to be accessed so that the address is transferred back after successful login), for example: [https: // cas: 8443/cas/login? Service = http0 % 3A8081% 2F]
[Step 2] the first time the terminal accesses CAS-Server:1,CAS-Server detects that the request information does not contain TGC, so it jumps to its logon page;2,Enter the user
Window. showModalDialog () and window. open () Cause cookie loss (Authentication failure) Authentication (user Authentication information) will also be lost and I wonder if you have encountered such embarrassment:
When your page Authentication adopts the Cookie-based method, such as form and windows integrated
I wonder if you have encountered such embarrassment:
When your page Authentication adopts the Cookie-based method, such as form and windows integrated Authentication, the following operations may cause the Authentication to fail and Authentication (user Authentication inform
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.