45
votes
Accepted
Why does this URL with excessive preceding dots resolve to an IP address?
Chrome is interpreting the number 1168951531 as a decimal number, which when represented in hexadecimal is 45ACC8EB. 45ACC8EB in hex is the same as the dotted decimal 69.172.200.235, when you take ...
20
votes
Disabling URL decoding in nginx proxy
Note that URL decoding, commonly known as $uri "normalisation" within the documentation of nginx, happens before the backend IFF:
either any URI is specified within proxy_pass itself, even if just ...
9
votes
Is there a limit on the length of URLs when using Amazon ELBs? If so, is there a way to increase it?
We received the following answer from AWS Support (formatting mine):
Kindly note that there is a limit for the URI length for all load balancers and as you are getting the 414 error, your GET request ...
8
votes
Accepted
Block specific URL in HAProxy / url-encoding
As it happens, HAProxy has a converter to decode the field, making sure that your ACL will always match a given string.
url_dec
Takes an url-encoded string provided as input and returns the
...
8
votes
Access server using URL locally without going through Internet
Sounds like it could be a couple problems, DNS mainly
However if you want a quick solution use your local hosts file.
In you local hosts file:
192.168.10.111 MyMachine
If you are running a DNS ...
6
votes
Accepted
Is It Technically/Feasibly Possible for a URL to have 3 or More Public Suffix Labels? (eg. test.co.io.example)
Yes, domains with more than 3 labels are common, this is most obvious in educational context, where URLs often look like https://me.institute.place.university.edu.cctld.
(The term TLD is only used to ...
5
votes
Accepted
I need to configure haproxy with multiple ssl ports
The documentation of redirect scheme says
With "redirect scheme", then the "Location" header is built by
concatenating with "://" then the first occurrence of the "Host"
header, and then the ...
5
votes
Accepted
How to do redirect from url to html file without downloading it in nginx
location /this/some/url {
index file.html;
alias /path/to/the/;
}
Please read about alias: https://nginx.ru/en/docs/http/ngx_http_core_module.html#alias
and about index file: https://nginx....
5
votes
Accepted
Where is "the URL in a HTTP request message"?
The URL is not required to appear anywhere in an HTTP request (except when made to a proxy; see below).
Point 2 in the quote from your book has an error. The URL does not appear in the request line ...
5
votes
Accepted
How to pass Question Mark (?) in password for HTTP Basic Authentication in URL parameters?
I assume you must be referring to the userinfo part of the URL in which the user credentials are passed, not "URL parameters" (which are part of the query-string):
https://<userinfo>@...
4
votes
How check in nginx for query_string parameters?
Something like this might work. It says "if the query string contains the sequence 'q=' send a redirect". At least that's what I think it says, I'm not great with regex. I've tested it and it works, ...
4
votes
Access server using URL locally without going through Internet
You have a few options.
If you have a local DNS server, create an A record for MyMachine.no-ip.com using the local ip address of your server. The benefit of this solution is that all devices in your ...
4
votes
Accepted
Nginx SSL-rewrite to localhost
Both your https and http servers share the same configuration block, which tells nginx to redirect to https://$server_name$request_uri address. That is the reason for the redirect loop.
You need to ...
4
votes
Accepted
nginx proxy_pass with flexable subpath possible?
Use nginx location and rewrite directives, something like this should be fine:
location ~ ^/sms/ {
rewrite ^/sms/(.*) /api/$1 break;
proxy_pass http://1.2.3.4;
...
}
don't forget to test ...
4
votes
Accepted
How can I create an SSH protocol link from my browser which will use a jump host?
No, AFAIK you can't use any "esoteric" options in a SSH URI. As far as I know there have been draft URI specs for SSH:
https://tools.ietf.org/id/draft-salowey-secsh-uri-00.html
https://...
4
votes
Accepted
How do I redirect a specific URL/ROUTE/PATH/LOCATION to another?
If I understand your setup, you have some external domain, example.com, controlled by a 3rd party, with a website running on it, controlled by someone else. You want to allow access to that site ...
3
votes
different servers on different ports: friendly url?
is there a way to do this?
Yes, the technology you are looking for is a Reverse Proxy.
3
votes
Accepted
Why doesn't my homepage URL contain a trailing slash in the browser address bar?
Why on earth do you think the .htaccess file should have anything at all to do with this?
It's a browser behavior and is the same on all sites: If you view the root page of a site, it will only ...
3
votes
How can I find the IIS server instance that a website is hosted on in my domain by only its public URL?
Before you start running network scanners on your network, have you actually asked your coworkers for any documentation, wikis, email chains, etc that might give you a better clue?
Assuming no one ...
3
votes
URL encoded URIs with umlauts not working on other Server
This one really drove me nuts! I doubled checked each and every possible locale setting and found out that each of them was set to UTF-8.
The strangest thing was: Copy/Pasting the url to the address ...
3
votes
Systematically add fragment to URLs
This answer is no longer valid in the context of the original question. I drew too quick conclusions on the subject.
After checking facts, I see that in https://www.rfc-editor.org/rfc/rfc7231 it is ...
3
votes
Why does this URL with excessive preceding dots resolve to an IP address?
This is a long representation of an ipv4 address of the ip 69.172.200.235. Which maps to www.test.com domain.
3
votes
Accepted
Apache adds "./" to file names with colons in them
This is done to prevent what is a relative URI from being misinterpreted as an absolute URI with an unknown scheme. It is not something you want to turn off, as the breakage would be even worse. ...
3
votes
Accepted
HAProxy encode url for querystring
There doesn't appear to be a built-in for this, but it's easily done with the Lua integration in HAProxy 1.6 and later.
Create a Lua file, let's say /etc/haproxy/lua/url_escape.lua.
I found some ...
3
votes
Is it possible to normalize "double-dots" URL using nginx?
As I see nginx normailses URL by default. Quoting documentation:
a normalized URI, after decoding the text encoded in the “%XX” form,
resolving references to relative path components “.” and “..”, ...
3
votes
Partial UPPERCASE and lowercase cause URLs not going to the same place?
Of CoUrSE iT mAkES liFE mucH eASIEr when YOu cAn IGnoRe CasE, tHe MeaNinG sTayS ThE SamE, RiGhT?
Historically: The Windows FAT32 file system for instance preserved the case but was case insensitive ...
3
votes
Can we use the port number with (back slash)/8080 with the Apache url like http://127.0.0./5000/
The syntax for specifying a port number in a URL is to add ":port" after the hostname (or IP address) and before the first slash, if present:
http://server.domain.com:8080
http://server.domain.com:...
2
votes
Rewrite URL before passing to proxy Lighttpd
This can be done with proxy.header since lighttpd v 1.4.46. See:
https://redmine.lighttpd.net/projects/lighttpd/wiki/Docs_ModProxy
Example for above would be:
$HTTP["url"] =~ "^/wsmobile/video/" {
...
2
votes
Server not recognizing %2b as valid image path
The plus sign (+) is a reserved character per RFC2396:
Many URI include components consisting of or delimited by, certain
special characters. These characters are called "reserved", since
...
2
votes
Simple apache2 redirect from one domain to another
VH is OK if you can do it, but not really a drop-in solution.
I prefer using If:
<If "%{HTTP_HOST} == 'old.example.com'">
Redirect "/" "https://new.example.com/"...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
url × 519rewrite × 150
nginx × 106
apache-2.2 × 68
redirect × 63
domain-name-system × 45
iis × 42
.htaccess × 34
mod-rewrite × 34
http × 32
domain × 24
apache-2.4 × 21
subdomain × 19
https × 18
iis-7 × 17
regex × 17
linux × 16
ip × 14
windows × 13
reverse-proxy × 13
port × 13
php × 12
web-server × 12
ubuntu × 11
proxy × 10