All Questions
60
questions
0
votes
0
answers
32
views
Kubernates - ExternalName Service rewrite method from POST to GET after HTTPS redirect
Imagine to have this scenario:
An API Gateway
A Backend Service
deployted on a Kuberantes cluster. Also we have:
An external authenticated service (imagine an external web application out from our ...
1
vote
0
answers
109
views
Apache Server Forward Proxy : How to redirect to a custom page?
On Apache server (Xampp) I have make a forward proxy for firewall filtering that works well, but I don't understand how to use RewriteRule to redirect a forbidden url to a custom error page.
I wish to ...
-1
votes
1
answer
112
views
nginx refuses to redirect all 404 pages to my index.html
I want Nginx to redirect all pages that are 404 to my index.html.
This nginx is running as a container. Yes I have confirmed nginx is actually being reached as the docker-compose log output shows the ...
0
votes
0
answers
56
views
ASP.NET application not accessible through Apache proxy on Linux
I need to clarify the process of pointing a web domain to a running ASP.NET application on a raspberry pi. The application is developed and ready, and the website is up and running. I have researched ...
1
vote
0
answers
420
views
Redirect traffic of one proxy to another one
I have installed a v2ray client on my server and I can connect to it successfully. Assume it is listening on following address:
http://localhost:1089
I also installed MTProto proxy on my server to ...
1
vote
1
answer
1k
views
Redirect secure domain to another via CNAME and an Nginx Docker Container
Update: I have appended a 2nd attempt at the bottom of this post. It is "working," but I would like to make my original idea work.
I am attempting to redirect an https request for a domain ...
0
votes
0
answers
55
views
Nginx proxy using domain as part of url path
I'd like to proxy foo.domain.com to the internal server http://localhost:8080/foo, the subdomain part is dynamic so bar.domain.com is also proxy to http://localhost:8080/bar.
I try this code up and ...
1
vote
0
answers
157
views
Apache reverse proxy configuration (/context to /)
I'm having this issue trying to proxy a site to another context on a different domain
What I currently have ?
I have a fully functional web site running on the following URL:
https://helloworld....
1
vote
0
answers
103
views
WP with reverse proxy: Accessing Admin section from subdomain
I have a blog on a subdomain (WP installation), which for SEO reasons I’m moving to a folder structure. The subdomain and the main site are on different servers/platforms, so I’m using a reverse proxy....
0
votes
0
answers
278
views
NGINX Get local IP for proxy_pass
Is it possible to pass in a variable such as $server_addr into proxy_pass.
proxy_pass http://$server_addr:8096/;
If I do this, I run into issues where it doesn't load. Is this possible on what I'...
1
vote
0
answers
450
views
Subfolder redirection to another port
There are two services on the server's two ports 192.168.0.42 in the LAN.
80 - wordpress with blog
8080 - java application (chat)
Domain redirected to router which forwards traffic from 80 and 443 ...
1
vote
1
answer
995
views
How to properly setup SSL with Apache2 and multiple Docker containers?
I intend to create the following setup with a single server droplet:
What I want to achieve is to only setup SSL / HTTPS once for my
Apache2 web server using a wildcard certificate as depicted above.
...
1
vote
0
answers
195
views
How to set up host redirection in a forward proxy in apache?
I have set up an apache proxy on my dev computer, so that I can redirect all requests to prod.example.com to staging.example.com, for reasons that are outside of the scope of this question. The ...
0
votes
1
answer
679
views
Redirect request to a second URL if an error is encountered on first in NGINX
I'm new to NGINX and I'm trying to figure out whether I need a proxy or a reverse proxy. Here's the requirement:
Create a proxy that will hit websiteA, if no error is encounter (node is not down but ...
0
votes
0
answers
365
views
nginx can't reverse proxy 302 internal from form post
my reverse configuration:
add_header Access-Control-Allow-Origin *;
add_header Access-Control-Allow-Headers X-Requested-With;
add_header Access-Control-Allow-Methods GET,POST,OPTIONS;
...
1
vote
1
answer
2k
views
NGINX reverse proxy rewrite rule with proxy_redirect
I'm running NGINX as a reverse proxy in front of some IIS hosted apps.
My goal is to have a rewrite rule for a specific location. The thing is that the app itself responds with a 301 or 302 in some ...
0
votes
1
answer
5k
views
NginX cannot redirect to React App
I'm quite new to NginX, so my apologies if anything I ask here sounds naive.
Lets say I have a DNS www.example.com.
Whenever a request comes to www.example.com/ (only /), I want NginX to redirect it ...
1
vote
2
answers
497
views
How to I setup nginx.conf for a simple proxy pass redirect?
I'm trying to set up what might be the "hello world" of proxy pass redirects. It entails a default route, and one single conditional route.
I want all of the traffic to my server to proxy some ip 1....
3
votes
0
answers
434
views
Reverse proxy with login for redirecting different users to different applications
Im trying to configure the topology you can see in this picture:
My question is, having a unique login server acting as a reverse proxy, is it posible to redirect the users to their respective server ...
0
votes
1
answer
3k
views
NGINX reverse-proxy exposing backend server IP address and protocol
Our documentation server at code.kx.com uses NGINX 1.12.2 under CentOS to serve static HTML. The firewall allows SSH, HTTP, HTTPS only. Our custom search engine runs as a HTTP server on port 5023 on ...
0
votes
1
answer
1k
views
Proxy pass with host in headers causes loop redirects
Use case
We need to redirect to current website (ip1 - https://host.com/path) from a new server (ip2) that will host another website under root path (https://host2.com/). In the end, this last ...
0
votes
0
answers
142
views
Nginx redirect without using a port
I am using a nginx to redirect from several http services with IP:PORT to a https domain. Now I need the nginx to redirect only:
http://IP to https://DOMAIN and open it in Browser with:
https://...
1
vote
0
answers
479
views
Redirect clients based on MAC address - OpenWRT/LEDE
on OpenWRT (LEDE) router I have the following redirection:
config redirect
option proto 'tcp'
option target 'DNAT'
option dest 'lan'
option _name 'Proxy for HTTP'
option src 'lan'
...
1
vote
1
answer
495
views
nginx modify and proxy URL
Ngnix newbie here.
Please I need some help to figure out how to correctly make nginx modify and redirect (proxy?) incoming requests.
The redirection seems to work ok, but the URL is not rewritten at ...
1
vote
1
answer
2k
views
Send HTTP request through proxy server to Internet
I have a client that has no direct access to the internet. But it is connected to a server on a LAN connection, whereas the server has access to the Internet.
I'd like to send an HTTP request from ...
1
vote
1
answer
641
views
Proxy (or redirect?) request per location
Something like this works globally with mod_proxy:
ProxyPass /api/* http://localhost:8081/api
ProxyPassReverse /api/* http://localhost:8081/api
so all my client requests for /api are directed to ...
0
votes
1
answer
1k
views
Nginx limit_req not working for HTTP to HTTPS redirect
I have the following in my config to redirect http traffic to https:
server {
listen 80 default_server;
limit_req zone=one burst=100;
listen [::]:80 default_server;
server_name _;
...
0
votes
2
answers
3k
views
Nginx blocks ports
I'm running a debian (jessie, 64-bit) server with nginx, jira and bitbucket installed. the url is referred to as "www.example.com"
First I installed jira, opened the setup site (http://example.com:...
0
votes
1
answer
4k
views
Impossible to fix nginx redirecting to port 8080 when accessing url without slash
I've been trying to fix this so annoying error, but didn't work.
I followed and tried many ways on this post Nginx redirects to port 8080 when accessing url without slash but its still there.
I'm ...
8
votes
5
answers
25k
views
Different Nginx redirects based on upstream proxy response
I have an upstream server handling the login of our website.
On a successful login I want to redirect the user to the secure part of the site.
On a failure to login I want to redirect the user to the ...
1
vote
1
answer
2k
views
Nginx redirect *:port to subdomain
I'm working with Nginxand I want to know how can I redirect all request with a specific port to a subdomain ?
This is my default.conf :
server{
listen 80 default_server;
server_name ...
7
votes
3
answers
2k
views
Redirect SSH Users for Docker: Gitlab and Docker: Bitbucket
As you already read in the title I am currently running multiple docker containers which are used as git servers and normally should run under port 22. This is obviously not working, but my requests ...
1
vote
2
answers
6k
views
How do i configure nginx to use part of a URL as a header?
I am trying to get a server application running which supports multiple customers.
They should each access the app with their own URL, e.g. http://localhost:8082/customer1/config, but the application ...
1
vote
2
answers
2k
views
Nginx redirect port to url
I'm running a VPS that has VestaCP installed. The web panel runs on port 8083. I've managed to get it working on panel.domain.com however, some of the URL's in the panel lose functionality when using ...
0
votes
1
answer
3k
views
Nginx Redirect all JPEG URL to single JPEG
There are two scenario that I'm trying to achieve.
Scenario A : If client request URL that contains .jpeg or .jpg file, redirect the user to a single .jpg file that are on the server in this case ...
0
votes
1
answer
2k
views
How to preserve nginx url from being redirected from back end tomcat server?
Nginx is not preserving the url from redirected backend tomcat server.
Nginx url: //develop-application.example.com/
Backend tomcat url: //application.example.com/
tomcat redirected url: //...
0
votes
1
answer
53
views
proxy with rewrite including headers
I'm trying to figure out the easiest way to proxy a wordpress site to a subdirectory of another site.
So, I have a wordpress site articles.blah.com/subdir/. It writes html with absolute paths like ...
0
votes
1
answer
3k
views
Iptables redirect HTTP traffic to proxy
I have a local HTTP proxy running, if I configure my browser to go through it works perfectly but I would need to leave the browser configuration blank and only redirect the traffic to the proxy with ...
1
vote
1
answer
378
views
Nginx Load Balancing proxy confusion
I'm currently trying to setup a load balancer for a bunch of download mirrors. While reading into this subject I saw Nginx lends itself perfectly as a load balancer, great! But when looking at the ...
3
votes
1
answer
662
views
How to redirect FORWARD proxy users to webpage using mod_proxy - apache
I have searched quite a lot for a solution and most answers pertain to either proxypass (reverse proxy) or are not relevant.
End users' web browsers are configured to use the Apache proxy server.
I ...
4
votes
1
answer
7k
views
Apache: Proxy based on URL suffixes
My team has written an internal BI server, which generates HTML reports at links such as /users/daily or /updates/questions.
The server is written in Grails, and it works perfectly with a classic ...
0
votes
0
answers
2k
views
nginx: Redirect all requests to a proxy, but not these three specific URLs
nginx can be tricky sometimes:
I want to
redirect all incoming requests for www.sub.domain.com/* to www.other.domain.com/*
use a proxy so users still see the original www.sub.domain.com when ...
1
vote
2
answers
1k
views
tomcat7 + nginx ssl causes redirect loop
We have the following set-up:
several subdomains lead to the same server, which is running nginx as a proxy to each of them. All subdomains are currently used for testing features in development, so ...
-1
votes
1
answer
1k
views
How to Hide port 8080?
How I can hide the port 8080 from the address bar? when I call my sub.domain.com I get nothing but when I call my sub.domain.com:8008 I get the application! I am using apache2 and jboss 7
Thanks
<...
2
votes
2
answers
118
views
Is this reverse proxy configuration possible
I will first try to describe the problem I have.
Let's say I have two different http servers running on two different ports behind firewall on my local machine:
SERVER1: http://localhost:8001
...
89
votes
4
answers
333k
views
Nginx Redirect via Proxy, Rewrite and Preserve URL
In Nginx we have been trying to redirect a URL as follows:
http://example.com/some/path -> http://192.168.1.24
where the user still sees the original URL in their browser. Once the user is ...
6
votes
1
answer
4k
views
nginx 301'ing limit_req rate limited requests instead of error page
I have a bulk search form on apache servers behind nginx. I'd like to protect that location so that the second request in a 10 minute period gets 301'd to a "Would you like to use our API" page ...
5
votes
2
answers
59k
views
Use nginx reverse proxy for redirection
I have a.b domain (for example) and want to serve some github pages (username.github.io/project) in a.b/c. It means that I also want to keep my browser url to a.b/c and showing contents of username....
1
vote
1
answer
3k
views
How to preserve request headers while redirecting using nginx X-Accel-Redirect
My scenario:
A sends request to B with some custom headers. Nginx proxy the request to B, where B does some logic and sets X-Accel-Redirect response header pointing to C. Then Nginx redirects request ...
1
vote
1
answer
2k
views
Forcing a specific HTTP URL request through web proxy
I need to force one specific HTTP request through a web proxy whereas the rest of the HTTP requests should directly go to the web server.
I can use error code 305 Use Proxy response to redirect my ...