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.
Questions tagged [url]
519 questions
3
votes
1 answer
How to make nginx remap a part of the URL without sending a redirection?
I have pictures on a path looking like this:
/0/1/2/3/4/01234/screenshots/1.jpg
The URL to access it looks like this:
/static/0/1/2/3/4/01234/screenshots/1.jpg
I'd like it to look like…

Bite code
- 409
- 5
- 17
3
votes
4 answers
Redirect www from DNS records
Related to this question: What’s the point in having “www” in a URL?
How can I do a “www” redirection form a DNS record level? I don’t want to tweak apache or IIS to achieve this.

Quintin Par
- 4,373
- 11
- 49
- 72
3
votes
1 answer
Squid selects parent depending on requested URL?
I have a basic squid configuration that connects to the Internet directly, I need a way to use a parent peer depending on the URL.
So for example:
I configure it to use a local proxy that links it to local machines for any URL with .local TLD
If a…

Osama ALASSIRY
- 824
- 3
- 8
- 22
3
votes
4 answers
How to add URL's to wiki (MediaWiki) powered documentation?
We have an internal company wiki. The wiki engine being used is MediaWiki, the wiki engine that runs Wikipedia. Some of it contains IT stuff.
One of the things i want want to have are hyperlinks to the various virtual machines. An example of a…

Ian Boyd
- 5,293
- 14
- 60
- 82
3
votes
1 answer
nginx- Rewrite URL with Trailing Slash
I have a specialized set of rewrite rules to accommodate a mutli site cms setup. I am trying to have nginx force a trailing slash on the request URL. I would like it to redirect requests for
domain.com/some-random-article to…
Bryan
3
votes
1 answer
Why is my Apache RewriteRule removing hex codes from the target url query string?
I have an apache rewrite rule:
RewriteRule ^/xy[/]{0,1}$ https://www.example.com/path/file.php?utm_source=Billboard&utm_medium=Print&utm_campaign=MyOrg%20Promo&utm_term=2020FA&utm_context=XY%2C%20border%20state%20abbreviation%20redirect [R]
But my…

Erick
- 33
- 5
3
votes
3 answers
Using Computer name in URL causes issues when connecting to Web Services
The set of applications I work on all access the same 8 or so web services that we have. These services and applications all reside on the same box and all use the computer name when trying to connect to the web service.
For Example:
If I have a…

AWinters
- 141
- 1
- 3
2
votes
1 answer
nginx keeps adding trailing slash
I want to create an alias to the "static" folder:
location ~ ^/myapp/([a-zA-Z0-9_-]+)/ {
alias /var/lib/myapp/$1/static/;
autoindex on;
}
But, if I have the URL:
https://mydomain/myapp/section1/page.html
I'm being redirected…

Nuno
- 553
- 2
- 8
- 26
2
votes
0 answers
Can't reach own host URL from within Jenkins build docker environment
I am running Jenkins as Docker image (https://hub.docker.com/_/jenkins)
From within, I run a node-12 docker image as build container.
I am running a script to publish the new version to our local app store, which runs on the same VServer.
So now the…

Martin Muzatko
- 121
- 4
2
votes
1 answer
How can I create an SSH protocol link from my browser which will use a jump host?
Not sure whether this should be going at serverfault or stackoverflow but starting here.
I can create an SSH link to open in my terminal application (Secure CRT) that looks like this and it works fine:
Open SSH
I now…

bdx
- 105
- 1
- 7
2
votes
2 answers
Nginx location match multiple extensions unless path starts with specific word
How can I write a location block that matches any path ending in the following extensions:
jpg|jpeg|gif|css|png|js|ico|json|xml|txt|html
Unless the path starts with "/rails" (eg: /rails/randomstring/image.png)?
I currently have this basic…

Felipe Zavan
- 131
- 1
- 1
- 5
2
votes
0 answers
HTTPS redirect, exclude script parameters from URL
My goals:
1. http://example.com/page/index.php -> https://example.com/page/
2. http://example.com/page/ -> https://example.com/page/
3. http://www.example.com/page/ -> https://example.com/page/
4. Any nonexistent file or directory requests ->…

Yury Osipenko
- 21
- 2
2
votes
1 answer
Nginx SSL-rewrite to localhost
I want to redirect localhost request to HTTPS. This is what my .conf looks like:
server {
listen 80;
listen 443 ssl;
ssl_certificate /etc/ssl/localhost.crt;
ssl_certificate_key /etc/ssl/localhost.key;
server_name localhost;
return 301…

Phil
- 123
- 1
- 5
2
votes
2 answers
Is it possible to normalize "double-dots" URL using nginx?
According to RFC3986 URL like this
http://example.com/catalog/category/goods/../brand/product.html
converted by some UserAgent (curl would be nice example) to http://example.com/catalog/category/brand/product.html
How can I achieve such behavior…

Twissell
- 70
- 1
- 13
2
votes
2 answers
Access server using URL locally without going through Internet
I have an SVN repo on my server and access it using dynamic IP service https://MyMachine.no-ip.com/svn/etc..
When I connect to it from anywhere I connect successfully and everything is fine.
But when I connect to it locally, within the same network,…

AngelicCore
- 123
- 1
- 5