: Proper way to handle URLs in the form of http://example.com/ On an apache server with a standard setup, when I request a URL in the form of: http://127.0.0.1/.. I receive this error in my
On an apache server with a standard setup, when I request a URL in the form of:
127.0.0.1/..
I receive this error in my log:
[Sun Aug 30 22:52:44 2015] [error] [client 127.0.0.1] Invalid URI in request GET /.. HTTP/1.1
and HTTP status 400 is returned from apache stating "Your browser sent a request that this server could not understand."
Other servers seem to handle the same type of URL differently.
When I request:
stackoverflow.com/..
I receive an access denied message (server status 403).
When I request one of these:
google.ca/.. http://google.com/..
I receive a temporary redirect to the same URLs without the trailing dots.
I tested everything with CURL.
So my question is what is the proper way to handle a request like this?
More posts by @Angela700
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.