Questions tagged [url-routing]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
25 views

Creating a custom URL for reverse local proxy with NGINX

I'm trying to set a custom URL for a reverse proxy. From what I understand, the code should be fairly straight forward. Here's what I've got: worker_processes 1; events { worker_connections ...
user avatar
0 votes
1 answer
391 views

Nginx: URL rewrite with proxy_pass and URL parameters and special chars

I studied all the great posts to nginx proxy and rewrite functionality, but was unable to find a solution for my problem. So here we are. I wrote an web application with vaadin, that is able to handle ...
user avatar
0 votes
1 answer
289 views

Is it possible to reveal URLs in a masked, server-side 301 redirect?

I work for a search monitoring company and I'm currently investigating some advertisements which are hiding malicious URLs in masked, server-side redirects. When users click these ads, they're ...
user avatar
  • 3
0 votes
3 answers
189 views

Azure gateway for web apps

We are looking for an Azure solution for routing incoming API messages (microservices-based) through a single entry-point to several Azure Web App instances (*.azurewebsites.net), rather than several ...
user avatar
  • 53
0 votes
2 answers
538 views

Query string issue with php-fpm and nginx

I am trying to run a PHP app using Nginx. Rewriting URLs work properly, however, query strings are not passed to the PHP files. Am I doing something wrong in the below configuration? I would ...
user avatar
1 vote
1 answer
40 views

Serving subsection of urls on different network card

I have a Django 2.2 web application running on Apache 2.4 Ubuntu 18.04 web server, which has two network interfaces. One network interface is for internet access(eth0) and other one is for local ...
user avatar
1 vote
1 answer
54 views

Serve website from different directory based on URL string parameter

I would like to learn if I can serve the website from 2 different versions according to URL string parameters. Example: I have two installs on my server: example.com/website-1/ and example.com/...
user avatar
  • 11
0 votes
1 answer
547 views

Nginx pattern matching to part of path

Here's what I would like to accomplish: All requests to /api/... should be directed to a reverse proxy All requests to /static/... should be served from /html/static/pub All other requests should be ...
user avatar
1 vote
2 answers
686 views

Transparent url redirection for https site

I'm hosting two new wordpress VM on my network. (on one computer) see this diagram on imgur I would like to access them by different url/domain name for example WP1.mydomain.com & WP2.mydomain....
user avatar
8 votes
2 answers
3k views

.htaccess with single page website

I have a single page website with URL parameters that should still open the single index.html (made with Vue.JS and Vue.JS Router). For example, there is www.example.com/, www.example.com/user, and ...
user avatar
0 votes
2 answers
2k views

Proxypass changing URL Apache Reverse Proxy

I am trying to connect my jupyter notebok server (:8888 port) via reverse proxy server I have such rules: ProxyPass "/serv8888" "http://localhost:8888" ProxyPassReverse "/serv8888" "http://...
user avatar
0 votes
0 answers
1k views

Nginx redirects to proxy instead of static files

I want nginx first redirect http to https, then check for static files in www root dir, if none, pass request to proxy. However, after http->https redirect requests are immediately passed to proxy. ...
user avatar
0 votes
0 answers
316 views

How to pass .jpg url to index.php in Nginx

My Yii2 application generates urls like this: http://example.com/map-image/1-map.jpg This is not a real jpg file but a dynamically generated jpg image. But nginx returns 404 error. I want to pass /...
user avatar
0 votes
1 answer
418 views

Modify response URL or Location header Apache2 mod_proxy

I have a WordPress site running in a server where now I need to deploy a web app on and since our SSL certificate is not wildcard it has to be under the same domain name too. Now it's running on a ...
user avatar
0 votes
1 answer
91 views

Routing Rules icon in Microsoft ARR 3 - Server Farm Section Does not exist

I want to implement Application Load Balancing by Application Request Routing - ARR3 on IIS8. I download ARR3 Source file and install on my server. the server farm section created in my iis but when I ...
user avatar
0 votes
1 answer
343 views

Location block passing through to a different php-fpm sock

There are two hosts with a PHP-FPM pool each - one.com and two.com. I would like one.com/two to pass through and show two.com using two's pool, but I seem to be having difficulty. Through alias and ...
user avatar
  • 101
2 votes
2 answers
5k views

How to RewriteRule without destroying relative path loading of source files?

I have an ugly filesystem path on the server: example.com/a/b/c/d/e/f/main.html. For simplicity, I will use example.com/httpdocs/main.html in the body of this question. I want that what the user ...
user avatar
  • 131
1 vote
1 answer
1k views

Redirect traffic to local machine in local network otherwise to remote server

TP-Link repeaters allow to access their web interface through a certain domain when being connected to them. If you are not connected to them and access the very same domain, you see their website. ...
user avatar
  • 157
0 votes
0 answers
567 views

Write Url Rewrite to replace %2F to %252F

We have two kind of api url's 1) RESTful style clean urls - http://x.x.x.x/api/records1/{entityId1}/records2/{entityId2} 2) Query string to search - http://x.x.x.x/api/records1?filter1={...
user avatar
31 votes
2 answers
5k views

Why does this URL with excessive preceding dots resolve to an IP address?

http://.................1168951531 Which, when put into chrome, previews to the URL http://69.172.200.235/, which redirects (by external server response code 3XX) to www.test.com, but that is outside ...
user avatar
1 vote
1 answer
762 views

Rewrite unless resource exists

I have the following rewrite rule which converts example.com/anything/ to load the page at example.com/anything.html RewriteRule ^([A-Za-z0-9-]+)/?$ $1.html [L] I need an exception to this rule when ...
user avatar
0 votes
3 answers
1k views

URL path-based redirection rules

I am trying to find a solution that will allow me to have one IP address/DNS Name across multiple servers using path-based rules (Layer 7). i.e - http://testing.test.com.au/ABC -> Server A and http://...
user avatar
  • 1
0 votes
1 answer
99 views

How do I redirect traffic to my blog using Namecheap?

My website is hosted on github and my www and @ points to github. My website is working fine. I recently made a Wordpress blog that is hosted on AWS. I want to direct blog.mydomain.com to AWS EC2. Is ...
user avatar
  • 103
1 vote
1 answer
5k views

Nginx not getting root right directory

I a trying to make an angular app with an api. Every route should go to the angular app, except the API route. The API route should go to an laravel project. But the API route(/api) won't work, it ...
user avatar
  • 185
0 votes
0 answers
226 views

Can't map *.asp to aspnet handler in IIS, keeps using StaticFile handler

Title says it all. I had this working once previously on the same server but cannot for the life of me figure out what is different. The MVC app is already setup to handle the incoming URL's and ...
user avatar
  • 101
0 votes
1 answer
594 views

Public IP address on url

I successfully setup DNS and a web server with all the requirements. Everything is getting resolved properly such as domain names and reverse proxies. My question is, how can I set the public IP ...
user avatar
  • 15
0 votes
1 answer
943 views

Route Azure Service Bus traffic over ExpressRoute?

Azure Service Bus exposes a publicly addressable HTTPS endpoint. For security reasons we'd like to force Service Bus traffic from on-prem systems to Azure over Express Route rather than over the ...
user avatar
  • 3
1 vote
2 answers
1k views

How to configure Nginx to make Gitlist work correctly

Here the full story: To make team project more easy to manage, view and follow, I had to build a project to setup a complete repository to centralize all of our differents projects. For this, I ...
user avatar
  • 131
1 vote
1 answer
2k views

Nginx Url Rewriting: Remove folder from the url

Im trying to rewrite a url like below: https://example.com/products/xperia-z5/ to--> https://example.com/xperia-z5/ But i want in the same time the url https://example.com/products/ to be ...
user avatar
  • 191
0 votes
1 answer
5k views

How do I proxy pass a URL in Nginx where location match is a URL and proxy pass has another URL

We have hosted some xml files in a S3 bucket on Amazon AWS. The web server is powered by Nginx. For a particular URL matching '/super-shots.xml' , Nginx must proxy pass through S3 location which is : ...
user avatar
  • 637
-1 votes
1 answer
740 views

Hiding parameters on url with nginx

I have a website with this kind of adresses: www.mydomain.com/user/userprofile/[userprofile1]?r=[login]&w=[encryptedpassword] ie: www.mydomain.com/user/userprofile/toto?r=reqqfdvca&w=...
user avatar
-1 votes
1 answer
873 views

Cisco Router - How do I host multiple websites with one public IP

I'm having some difficulty configuring my Cisco 4300 Series router to host multiple websites with a single public IP. I have created my access lists, but the techs over there tell me I must have one ...
user avatar
1 vote
0 answers
409 views

Appending URL subdomain as URL path in HAProxy

I want to convert following URL: http://subdomain.example.com/a/b/c To this: http://example.com/subdomain/a/b/c In HAProxy. Thanks a lot
user avatar
0 votes
1 answer
897 views

nginx reformat request_uri to access real file path

I want serve static files with nginx. User will request like this format: http://test.com/files/ea624cf923ea Actual file location will like this /files/ea/62/4c/f923ea How can I serve this file? ...
user avatar
  • 103
1 vote
2 answers
7k views

How do you Mask URLs in HAProxy?

Is there any way to do URL masking in HAProxy? I'd like to have a URL directing to my load balancer, i.e. www.example.com, redirect to another URL I have for another application. However, I'd like the ...
user avatar
  • 111
0 votes
2 answers
522 views

Nginx Rewrite and Redirection Same Time?

I have arcade gaming web site. I want to convert my urls to sef. category : example.com/index.php?category=mario-games > example.com/category/mario-games game details : example.com/index.php?game=...
user avatar
  • 3
0 votes
1 answer
173 views

IIS Domain is always routing to Domain Root

going to https://www.example.com/about always leads back to https://www.example.com/ How do I stop this while forcing a https://www.example.com/? non-www.htaccess RewriteCond %{HTTP_HOST} !^www\. ...
user avatar
3 votes
1 answer
5k views

HAProxy - balance according to url_parameter

I have 2 different tomcat servers: T1 , T2 My clients that refer to my load balancer are providing the url parameter called "gender" (0 - for Male users , 1 - for Female users). only the url ...
user avatar
  • 139
5 votes
2 answers
4k views

Can HAProxy select a backend based on a lookup table?

Let's say I have items A, B, and C. I have two backend servers: server01 and server02. Item A can be handled by server01, item B and C can be handled by server02. New items and servers get added and ...
user avatar
  • 402
-2 votes
1 answer
117 views

How to redirect a url to development environment in Organization Network

In my organisation we have nearly 100 people but we dont have any dedicated IT Staff to manage our network. We have one of our product running on a domain name http://www.domainkachra.com. We want if ...
user avatar
  • 111
2 votes
2 answers
8k views

Unable to request URL's without php file extension after upgrade to Ubuntu 14.04

After upgrading my remote server to Ubuntu 14.04 (Apache 2.4), I am unable to use my previous format where I could request URI's without calling the file extensions kind of like how pages are called ...
user avatar
2 votes
1 answer
3k views

Whitelisting valid URL patterns on a NGINX webserver

I want to whitelist only valid URL-patterns on our RESTful webserver / API, using regexs or something. But when googling for some examples I get a little bit suspicious since there is not much ...
user avatar
-1 votes
1 answer
88 views

Apache MOD_REWRITE for subdomain

Summary I have 2 servers, 1 Production & 1 Development Problem I want to keep the servers URLS the same in the code. The production server will be blah.com but I want the development server to ...
user avatar
  • 207
0 votes
1 answer
2k views

Load balancers, multiple data centers and url based routing

There is one data center - dc1. There is a business need to setup another data center - dc2 in another geography and there might be more in the future say dc3. Within the data center dc1: There are ...
user avatar
0 votes
1 answer
3k views

Forwarding url requests to different ports

For development I run a few different servers (multiple instances of Tomcat and nodejs) to simulate some applications that work together. Each one runs on a different port and responds to different ...
user avatar
6 votes
1 answer
163 views

ISA wrong translation of the schema URL included in WSDL

I have a WSDL behind ISA server. The WSDL includes a schema <xsd:include schemaLocation="myschema.xsd"/> However, when accessed through ISA, some implicit mapping changes the server name to the ...
user avatar
0 votes
1 answer
671 views

WIFI URL redirection

Is there some generic solution for redirecting hotspot users to some page before they get to their requested page? No need for authorization,billing or any other captive portal capabilities. I'm ...
user avatar
2 votes
1 answer
906 views

Setting expires header to multiple location block in nginx

In my nginx config, I have serveral location blocks, e.g. location ~* /a { ..} location ~* /b { ..} location ~* /c { ..} And I want to apply the expires header to all of above blocks, e.g. location ...
user avatar
  • 1,985
-1 votes
1 answer
350 views

Redirecting and Remapping with mod_rewrite

First of all, am new to doing back-end server admin.. I have a main website being served on at certain IP. I have a blog address that lives on another IP, which was used on wordpress.com. When a user ...
user avatar
2 votes
0 answers
386 views

URL Rewrite in Apache + Tomcat set up with change in web application context

How to make URL http:/hostname:8080/abc?func=ll point to the URL http:/hostname:8080/xyz?func=ll automatically. Set up is Apache behind which Tomcat is present. Application "xyz" is deployed on ...
user avatar
  • 21