Questions tagged [url-routing]

78 questions
2
votes
1 answer

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 ~* ^/.*\.(?:css|js|jpg|jpeg|gif|png)$ { …
Howard
  • 2,005
  • 11
  • 47
  • 70
2
votes
0 answers

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 Tomcat. Application abc is non existent. All requests…
Abinash
  • 21
  • 2
2
votes
1 answer

Nginx, PATH_INFO, and url-rewriting: i must be missing something

I'm switching from Apache to Nginx/fcgi and I'm having a small issue while attempting to setup the applications rewrite rules. The code handles routes via the use of PATH_INFO, e.g., example.com/foo/bar/ will be routed to…
ben lemasurier
  • 758
  • 6
  • 21
2
votes
1 answer

URL Based Internal Redirecting

Basically, we have one external IP address, several servers internally and want to redirect to each internal server based on request URL. We do not want to install another piece of hardware to do this for us but we have a firewall running Linux that…
user41250
  • 23
  • 3
2
votes
2 answers

Extension-less URLs on IIS6 with ASP.NET MVC

I remember attempting to use an extension-less URL format in a CMS I wrote way back when .NET 2.0 first came out. The problem was deploying to an IIS6 server. It made it practically impossible. I had to programmatically create folders for the…
Josh Stodola
  • 289
  • 1
  • 4
  • 14
1
vote
2 answers

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.com or myfirstDomain.com & MysecondDomain.io -- Those…
SpongeB0B
  • 11
  • 1
1
vote
1 answer

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. How is this done under the hood without running…
Coxer
  • 157
  • 14
1
vote
1 answer

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 a physical directory or file exists. For example,…
1
vote
1 answer

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 just redirects to the angular app. And when I remove…
Jan Wytze
  • 185
  • 1
  • 5
1
vote
2 answers

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 planned to put on a dedicated (VM) Debian server: A…
Kane
  • 131
  • 7
1
vote
1 answer

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 accessible, without any modifications since its a product…
Skeptic
  • 191
  • 1
  • 1
  • 6
1
vote
0 answers

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
1
vote
2 answers

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's browser to still display the original…
Grant
  • 111
  • 1
  • 6
1
vote
2 answers

URL rewriting- Usage of same DNS for new Server

I am migrating the Solaris Server to a Linux based one. I was thinking about using the same DNS/URL for the Solaris box for the new Linux Server. It would help me as - Users don't have to make any changes and i just need to switch over to new Linux…
Balualways
  • 242
  • 2
  • 4
  • 14
1
vote
3 answers

Forwarding HTTP/HTTPS traffic based on URL

I look for a solution to forward http/https traffic to a backend webserver based on the request url. Our current setup: Webserver1 (Sharepoint) Webserver2 (Reporting Services) Both run Windows Server 2008 and IIS7. The Webserver1 receives all…
driAn
  • 157
  • 1
  • 2
  • 5