Questions tagged [url]

Uniform Resource Locators are a generic scheme for specifying the location of resources. They are most commonly used for identifying locations on the Internet (such as webpages and email addresses) but can be used to reference almost anything.

519 questions
6
votes
3 answers

Is it ok to not use 'www' in my website subdomain url?

We have a website that is a subdomain of our primary domain, such as site.example.com. The official URL of the website is http://site.example.com, but some people keep referring to it as www.site.example.com. I have a redirect rule in place to…
churnd
  • 4,077
  • 5
  • 34
  • 42
6
votes
2 answers

Rewrite URL before passing to proxy Lighttpd

I'm trying to setup a reverse proxy in lighttpd, such that all requests (and only those requests) under /mobile/video is redirected to the / directory of a secondary web server. This is pretty easy in apache, but I can't for the life of me figure…
futureelite7
  • 207
  • 1
  • 4
  • 8
5
votes
2 answers

Faster way to ping URL than curl

What would be the fastest way to check whether the specified URL is working? (responding in OK http status code)? For now I'm using curl, but I have bunch of URLs to test in a loop, so I'm looking for the fastest solution. Any options to check…
Sfisioza
  • 592
  • 2
  • 8
  • 18
5
votes
1 answer

What MIME type should I put for Windows shortcut file (.URL)

If I want to have a Windows shortcut file (foo.URL) to be saved for the users, what MIME type should I assign for it? Default text/plain causes Windows to suggest it to be saved with .txt added as default. With googling, I've found some…
Touko
  • 241
  • 3
  • 7
5
votes
2 answers

Django rewrites URL as IP address in browser - why?

I am using django, nginx and apache. When I access my site with a URL (e.g., http://www.foo.com/) what appears in my browser address is the IP address with admin appended (e.g., http://123.45.67.890/admin/). When I access the site by IP, it is…
Mitch
  • 291
  • 1
  • 4
  • 7
5
votes
1 answer

How to pass Question Mark (?) in password for HTTP Basic Authentication in URL parameters?

I am automating a website which requires HTTP Basic Authentication. The suggestions given in this link work like a charm in most cases: Can you pass user/pass for HTTP Basic Authentication in URL parameters? However, some of the users have a…
4
votes
1 answer

How check in nginx for query_string parameters?

How I can write a condition in the nginx config testing if a q parameter was entered in the URL? This doesn't work: if ($arg_q) { return 301 "/someurl"; } It catches URLs like /search?entered_search=1&q=123 But it doesn't catch URLs…
astropanic
  • 307
  • 2
  • 5
  • 18
4
votes
1 answer

Block specific URL in HAProxy / url-encoding

I'm trying to restrict access to a specific URL. It should not allowed to access /admin.php. frontend example acl restricted_page path_beg -i /admin\.php http-request deny if restricted_page This works fine, HAProxy is blocking access to this…
user336399
4
votes
7 answers

What does the "//" in "http://serverfault.com/questions/ask" stand for?

I use URLs all the time typing them in with and without "//" after the "http:" but what does the "//" really stand for?
non sequitor
  • 143
  • 3
4
votes
0 answers

Is websocket reverse proxy possible with IIS 8.5 & URL rewrite 2.0?

I installed Tomcat as a java app server behind IIS. Using the following rules I can rewrite static pages just fine, but alas, websocket connections are never established:
Mirco
  • 53
  • 1
  • 5
4
votes
3 answers

How to redirect root to subdirectory while maintaining URL in the address bar

I have an nginx setup with folder structure like this: - www |- splash |- blog www is the root folder. I would like to redirect users who access http://example.com to the splash folder. But I don't want the URL in the address bar to change to…
Goni
  • 41
  • 1
  • 1
  • 2
4
votes
2 answers

Is there a limit on the length of URLs when using Amazon ELBs? If so, is there a way to increase it?

We appear to be encountering an error due to Amazon ELBs truncating a long (over 1K characters) URL. I have searched through the usual suspects, but can't find any discussion of URL length limits for Amazon ELBs. Is there a limit on the length of…
Jordan
  • 143
  • 1
  • 1
  • 5
4
votes
2 answers

How to change the URL on my Amazon EC2 webserver

I am at the point in playing around with EC2 that I have launched a webserver. Right now, the website URL looks like http://ec2-.compute-1.amazonaws.com/ I am evaluating the usefulness of these services for my small business purposes;…
Sarah
  • 41
  • 1
  • 2
4
votes
2 answers

URL rewrite in IIS 7

I have a question. I'm using IIS 7 URL rewrite. It works fine, but now I want this: http://www.example.com/http://www.domain.com to be: http://www.example.com/www.domain.com I have no clue on how to do this. Can you help me? Thanks in…
Martho
4
votes
1 answer

HAProxy Specific URI

So my HAProxy configuration is similar to this. listen webaustin 0.0.0.0:80 mode http timeout connect 12000 timeout server 60000 timeout queue 120000 balance roundrobin option httpchk GET /index.html log global …
grufftech
  • 6,760
  • 4
  • 37
  • 37
1 2
3
34 35