Questions tagged [uri]

URI stands for "Uniform Resource Identifier", and is typically a string used to identify a resource over a network or file system.

25 questions
48
votes
4 answers

What's the maximum URL length in Tomcat?

And is it configurable? Can I set up Tomcat so that a URL with, say, 200K of query params goes through successfully to the contained servlet? Yes, I know one should use POST when you have lots of data; that's a less pleasant option in this…
Michael Gundlach
  • 1,261
  • 1
  • 9
  • 7
31
votes
3 answers

HAProxy reqrep remove URI on backend request

real quick question regarding HAProxy reqrep. I am trying to rewrite/replace the request that gets sent to the backend. I have the following example domain and URIs, both sharing the same domain name, but different backend web server…
Jim
  • 978
  • 7
  • 20
  • 32
9
votes
1 answer

adding a global URI prefix for Tomcat web apps

I am setting up a reverse proxy configuration where all requests whose path starts with '/apps/' should be proxied by Apache to Tomcat. This IMO has 2 benefits: it makes it possible to reserve proxying to only the '/apps/' part of the URI space, and…
rvdb
  • 319
  • 1
  • 5
  • 14
1
vote
0 answers

Can I deny in nginx based by URI and IP?

Basically I have an wordpress site (with a ecommerce store and a social login). I have denied all access to wp-login.php based on ip address. The problem is that social login uses this wp-login file. So I wonder if is possible to: - block almost all…
Alex
  • 11
  • 2
1
vote
3 answers

Manage multiple ports with Apache Tomcat

I already switched my default port from 8080 to 80, but here's a problem: I need to also be able to manage port 8000, too. Current ports are: 8080, 80. How do I map a new port (8000) to a new webapp?
crownusa
  • 23
  • 1
  • 2
  • 4
1
vote
1 answer

nginx + regex, remove all parts of URI except the last one

With an URI like /a-part/some-part/another-part/last-part/?some_param=some_value how do I go about removing everything up to the last part with params and ultimately rewrite it to look like /index.php?id=last-part&some_param=some_value ?. I tried…
Everyone
  • 21
  • 5
1
vote
1 answer

SIP me@domain.com vs (123) 456-7890

I'm trying to understand SIP, and one thing that keeps confusing me is phone numbers and dialing plans vs SIP URI's like me@domain.com. What is the difference? How do they coexist/work together? For example, do you connect using a me@domain.com URI…
Azendale
  • 1,505
  • 2
  • 11
  • 14
1
vote
1 answer

need rewrite nginx

I'm having URLs like: index.php?q=123&w=456&e=789 and I need to rewrite them in something like: index/123/456/789 without using "if". So far I've tried: location / { rewrite ^/index.php\?q=(.*)&w=(.*)&e=(.*)$ /index/$1/$2/$3; } But it…
1
vote
1 answer

Apache RewriteCond: inject string into URI between regex match groups

EDIT This works, needed to use % in place of $ for capture groups: RewriteRule (.*) http://localhost:8081/%1/%{TIME_YEAR}1101%2 [P] Having a hard time sorting this out. Need a date string conditionally injected into specific URIs (for proxy to…
virtualeyes
  • 665
  • 3
  • 10
  • 28
1
vote
1 answer

Convert nginx $query_string in location to a params

I want to use the location and convert a URL to GET parameters in my server. I don't care if it is one, two or more params in the URL but it would be something like this, if I go to this URL https://www.example.com/page/one/two/three/ .... it should…
aEVA12
  • 13
  • 2
0
votes
1 answer

DNS records - custom imap domain URL using my domain

I want to setup a custom email imap domain name as a DNS record that points, for example, imap.mydomain.io to imap.google.com, so that I can give imap.mydomain.io url to my email customers. This is because I want them to use imap.mydomain.io address…
alexandre1985
  • 205
  • 1
  • 2
  • 7
0
votes
1 answer

ansible uri replace + sign with space in body or jenkins api replace it, who has issue?

I am using jenkins api to create credential by ansible. - name: Add credential to add node uri: body: | json={ "": "0", "credentials": { "scope": "GLOBAL", "id":…
Nilesh
  • 255
  • 1
  • 6
  • 17
0
votes
2 answers

Ansible slurp as private key in jenkins credential api error for json parsing?

I have jenkins setup, now I want to add node to jenkins, I am following the steps in How-to-Connect-to-Remote-SSH-Slaves. There is step to create credential with slave node private key. I try to create that using jenkins api by ansible. Tasks in…
Nilesh
  • 255
  • 1
  • 6
  • 17
0
votes
1 answer

nginx extracting from request_uri and adding it to redirct destination

i am currently moving new builds of an existing site onto a new server using nginx and have been told the URL need to direct to a new PHP file to handle how to pick out the date from a new DB. an example incoming URL would be :…
Jimjebus
  • 3
  • 1
  • 3
0
votes
1 answer

URL encoded URIs with umlauts not working on other Server

we are about to move our companies Website (Drupal 7) from the old Server A to the new Server B. As usual we ex-/imported the database and copied all the files via ftp. Since our company resides in Germany, we have a bunch of Images whose File names…
philipp
  • 137
  • 2
  • 10
1
2