Hot answers tagged

44 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 ...
  • 580
14 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 ...
  • 13.5k
12 votes
Accepted

HTTP URL Redirection Command Line Trace

Try curl -v -L There are several tools, you can use from the command line, the most well known of which are curl and wget. With curl you can follow redirects using the flag -L; additionally, you want ...
  • 651
10 votes

Prevent URL Rewrite rules from being inherited by subdirectories in IIS7

I recently ran into this problem, in a similar situation. But the answer from rjenkins would seem to cause problems with virtual applications that relied on inheritance of parent settings. If you ...
  • 203
8 votes

Faster way to ping URL than curl

I suspect that any performance increases you'll see are from improving whatever wrapper you're using to make your connections, rather than the overhead of launching curl for each URL. Whether it's ...
  • 775
8 votes
Accepted

Reg Exp for URL in HAProxy

You need to construct two regex's that are mutually exclusive: only one can be true at a time: How about if you make the second item be a regex like: ^/path[^/] The [^/] means "any character that ...
  • 7,767
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 ...
  • 9,270
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 ...
7 votes
Accepted

How can I access a URL through it's IP address?

The HTTP protocol allows the client application (usually a web browser) to create HTTP requests containing the name of the web site it wants to contact; this allows multiple web sites to coexist on ...
  • 69.5k
6 votes
Accepted

What's the point in redirecting users to "www2."?

It's used to load balance. You can use DNS to point www.example.com to one IP, www2.example.com to another IP, www3.example.com to yet another IP and so on and so on. And, in fact, this is how it's ...
  • 53.6k
6 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 ...
  • 161
6 votes
Accepted

Google bot cannot read my web site

The error message says: Over the last 24 hours, Googlebot encountered 1 errors while attempting to retrieve DNS information for your site. The overall error rate for DNS queries for your site is 50....
  • 27.6k
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 ...
  • 8,130
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 ...
4 votes
Accepted

Empty href tag returns current url on remote server

This is by design. According to RFC 2396: A URI reference that does not contain a URI is a reference to the current document. In other words, an empty URI reference within a document is ...
  • 1,729
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 ...
  • 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 ...
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 ...
  • 2,566
4 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>@...
  • 12.2k
3 votes

Standard for singular vs plural type names in urls

To make @Satanicpuppy answer more precise, it's not always true that in *nix system architecture it's always singular. I think in *nix systems, since system admins are mostly accessing it using ...
  • 219
3 votes
Accepted

Redirect from a URL:80 to another URL:xxxxx with Windows Server 2012 R2

HTTP clients do not know anything about SRV records. You'll need to perform an HTTP 301 Redirect using your webserver.
  • 109k
3 votes
Accepted

What is the reason for redirecting the landing page of a site to a URL with '/#/' at the end?

JavaScript Single-page apps often use a hash to handle navigation within the app (clicking on a link in the application might update the hash to https://example.com/springApp/#/foo/bar, for example). ...
  • 32.8k
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 ...
  • 98.1k
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 ...
  • 137
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 ...
  • 16.7k
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.
  • 115k
3 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, ...
  • 31.2k
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 ...

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