Skip to main content
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 ...
Steve's user avatar
  • 590
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 ...
cnst's user avatar
  • 14.4k
10 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 ...
rhopman's user avatar
  • 201
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 ...
Anthony Fornito's user avatar
7 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>@...
MrWhite's user avatar
  • 13.1k
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 ...
anx's user avatar
  • 9,842
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 ...
Lutz Reinhardt's user avatar
5 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, ...
Tim's user avatar
  • 33k
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....
Alexander  Makarenko's user avatar
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 ...
Michael Hampton's user avatar
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 ...
Mike M's user avatar
  • 1,142
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 ...
Tero Kilkanen's user avatar
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 ...
mforsetti's user avatar
  • 2,786
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://...
HBruijn's user avatar
  • 80.8k
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 ...
Aleks G's user avatar
  • 1,026
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.
user9517's user avatar
  • 116k
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 ...
Ryan Bolger's user avatar
  • 16.9k
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 ...
philipp's user avatar
  • 137
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 ...
Sven's user avatar
  • 99.7k
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 ...
Tero Kilkanen's user avatar
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.
Gothrek's user avatar
  • 551
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. ...
Michael Hampton's user avatar
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 ...
Michael - sqlbot's user avatar
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 “..”, ...
pva's user avatar
  • 160
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 ...
HBruijn's user avatar
  • 80.8k
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:...
Massimo's user avatar
  • 71.5k
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/" { ...
ikwyl6's user avatar
  • 130
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 ...
user2320464's user avatar
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/"...
Nux's user avatar
  • 601
2 votes
Accepted

NGINX URL with parameter rewrite to URL without parameter

Visit : domain.com/folder/abc --> domain.com/folder/filenam.php?url=abc //this is inside the http block map $request_uri $request_basename { ~/(?<captured_request_basename>[^/?]*)(?:\?|$) $...
kai's user avatar
  • 36

Only top scored, non community-wiki answers of a minimum length are eligible