All Questions
Tagged with reverse-proxy rewrite
108
questions
0
votes
0
answers
166
views
Nginx as reverse proxy , rewrite or proxy pass request to docker container
I'm trying to use nginx as reverse proxy in front of a few applications which are on the same machine(Docker containers).
As a test, I tried to connect PHPmyAdmin to a URI like: www.example.com/phpma
...
0
votes
0
answers
46
views
reverse proxy shall act as a cache and provide a website under a different domain
Assume a webserver providing a language version of a website accessable under the URL
http://www.website-a.com/zh-hans/some-otherstuff/index.php
I want to setup a reverse proxy for one language ...
0
votes
0
answers
189
views
How to rewrite a file URL in a reverse proxy upstream to a host local path?
I setup a Nginx reverse proxy virtual host as below:
location / {
proxy_pass http://127.0.0.1:8082;
proxy_set_header Host $host:$server_port;
proxy_set_header X-Forwarded-Host $server_name;...
0
votes
0
answers
162
views
apache2 reverse proxy, how to serve multiple domains with backend recognizing only 1 valid uri
I have an Apache reverse proxy set up and my backend service is configured on a specific static ServiceUri="site.com". I would like requests coming for multiple domains a.site.com/data, b....
0
votes
1
answer
15k
views
Nginx http to http redirect 400 The plain HTTP request was sent to HTTPS port
i have an app that is exposed at http on port http://app1.internal.example.com:8080 and https on port https://app1.internal.example.com:8443
so i have the 80 and 443 nginx server block to help ...
2
votes
0
answers
281
views
Rewrite cname host mapping url paths with nginx
There is currently an app that is using cname host mapping with a third party app
the hostname for the third party app is mycompany.partner.com
and the current cname host map under my domain help....
0
votes
1
answer
559
views
Blocking Port 8080 from direct IP access but allow access via domain (Virtualhost Config)
I want to access web server from http://subdomain2.domain.com from URL but not from direct IP (http://1.1.1.1:8080). For instance, below is my virtualhost config file (site2.conf) in /etc/apache2/...
1
vote
0
answers
1k
views
nginx proxy_pass change target domain in requests and responses
My Problem is:
I have a server with an internal domain name service.internal.example.com which redirects all clients asking for another domain to its FQDN https://service.internal.example.com. This ...
0
votes
0
answers
49
views
nginx rewrite rules: Rewrite https://Frontend/backend/Api/SelectAllBranch/ to https://Backend/Api/SelectAllBranch/ or .../SelectAllBranch
I'm using this configuration to nginx proxy reverso
location /backend {
rewrite ^/backend(.*)$ $1/ break;
proxy_pass http://credentials-web-bff.cl-milugar:5000;
proxy_redirect off;
...
1
vote
0
answers
245
views
4D app with https via IIS reverse proxy not working
I am trying to set up a simple reverse proxy for http and https for a 4D app running on a windows server 2012 R2.
I got http working but not https. When I open the public firewall and access the 4D ...
0
votes
1
answer
820
views
how to allow proxy pass with same location, with multiple context path
server {
listen 80;
server_name example.com www.example.com;
location /consol {
if ($request_method !~ ^(GET|POST)$) {
return 405 "Not allowed";
}
...
0
votes
0
answers
966
views
Nginx proxy pass Server runs in port 4443 with lets encrypt ssl
I am trying to proxy java application runs on port 4443 using nginx. My nginx server block is like below:
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
upstream ...
0
votes
1
answer
868
views
reverse proxy doesn't work with .svc url?
here's my attempt to do a reverse proxy using url rewrite in IIS from mysubdomaintarget.mytargetdomain.com to mysubdomainreal.myrealdomain.com
<configuration>
<system.webServer>
...
1
vote
0
answers
2k
views
How to set the HTTP headers "X-Forwarded-Context" or "X-Forwarded-Prefix" with IIS reverse proxy
I try to configure a reverse proxy in the IIS. This required to set some HTTP headers. I was able to add the follow HTTP headers:
X-Forwarded-Proto
X-Forwarded-Port
X-Forwarded-Host
This is possible ...
0
votes
1
answer
479
views
Google Load Balancer HTTPS Mapping between wordpress.com and google storage bucket
My question is about how to best route a particular URL to a static page while routing everything else to a wordpress.com site
I have a domain on Google domains, currently the A record for the bare ...
0
votes
0
answers
162
views
Rewrite URL on windows 10 pc?
I'm not a pro in networking, but a software engineer, so don't kill me if it's not possible, but here's my question with a little "intro".
So we have a server that is currently at public ...
0
votes
1
answer
5k
views
How to write nginx proxy pass for the Django application
I have deployed a simple Django application in the AWS server and created a config file in the Nginx as follows.
server {
listen 80;
...
0
votes
2
answers
7k
views
HTTPS + Nginx Reverse Proxy + URL rewrite
I am trying to direct all HTTPS traffic to Nginx server where it will handle all the requests as HTTP requests to all internal servers. So far, I am able to get the template below to work for most of ...
0
votes
1
answer
2k
views
Nginx rewriting url for proxy passing
So I have two nginx server in a kubernetes cluster. I want that one nginx server acts as a reverse proxy for the other that serves my phpmyadmin files.
For accessing my phpmydadmin from the first ...
0
votes
2
answers
1k
views
How to run two different application(Java and Wordpress) on same domain name
I have a java application run at https://example.com which is hosted on server A. When some access https://example.com/example it should redirect to the WordPress site which is hosted on server B but ...
3
votes
2
answers
2k
views
How to set up reverse-proxy to an external server in IIS
So the scenario we have in mind is as follows.
We have an IFRAME. Said IFRAME wants to point to a resource on https://trees.com. It might be, for example, https://trees.com/ficus/macrophylla. However, ...
1
vote
0
answers
287
views
Problems with understanding rewrite rules in IIS
I wrote earlier about Trying to understand reverse-proxying using nginx and Windows IIS. While the upwork-hired specialist looks into that, I'm looking into just using IIS to do reverse proxying.
...
1
vote
2
answers
3k
views
RewriteRule (Reverse Proxy) of front page in htaccess not working
The following rule should target my front page (WordPress) to serve a different page instead.
RewriteCond %{HTTP_HOST} ^example.com$
RewriteCond %{REQUEST_URI} ^($|\/$|\?|\/\?)
RewriteRule ^(.*) ...
0
votes
0
answers
138
views
Rewrite URL with nginx
Well, I'm using Ngix as reverse proxy and wso2 in backend. What I want to do is: access wso2's pages using a custom url on NGIX, but acessing the right URL on backend. Example when I access https://...
1
vote
1
answer
3k
views
NGINX - Redirect request to another IP, while keeping URL
I have dynamic DNS set up and want to be able to access different computers from outside my home. Currently I have a raspberry pi running nginx on 192.168.1.2, with my router at 192.168.1.1. I also ...
0
votes
1
answer
1k
views
Nginx rewrite to remove folder name
I would like to remove the app name from a maganolia CMS installation on tomcat running on port 8080 in folder /magnoliaAuthor so I tried:
location / {
proxy_pass http://127.0.0.1:8080/...
0
votes
0
answers
258
views
apache reverse proxy - remove domain
I want my virtualhost "new_target.domain.com" to point via apache reverse proxy to "https://target.com". This works fine but on new_target.domain.com the a hrefs are not correct. They point to https://...
2
votes
1
answer
2k
views
IIS10 - NODEJS - 502 Web server received an invalid response while acting as a gateway or proxy server
We are running a NodeJS server on Windows using a reverse proxy and application request routing. Basically, the node server is running locally on localhost:3000, and IIS is rewriting any external ...
1
vote
0
answers
144
views
nginx reverse proxy and rewrite rule
This question is actually quite close to my requirement where, the Nginx configuration rewrites the URL for $1.
Reproduced here:
location /foo {
rewrite /foo/(.*) /$1 break;
proxy_pass ...
3
votes
1
answer
5k
views
Nginx reverse proxy hide url
Here is my nginx proxy.conf file,
server {
listen port 9090;
root /usr/share/nginx/html; # not sure whether this line is needed or not
index index.html; # not sure whether this line is ...
1
vote
1
answer
120
views
How to properly rewrite URL in nginx
I have one public IP and I need to maintain two web servers, therefore I've decided to make reverse proxy server. My proxy server uses NGNIX, and back end one uses Apache.
10.1.1.3 is Nginx's ip
10....
0
votes
1
answer
630
views
nginx reverse-proxy, how not to pass the location
what we have:
reverse-proxy server with nginx - external: 10.xx.xx.xx - internal: 192.xx.xx.1
internal server running a service on port 9010: 192.xx.xx.15
We get already the service if we connect to ...
1
vote
0
answers
3k
views
Nginx proxy_pass only works with trailing slash
I'm trying to host a Shiny server on the /shiny/ subpath of my website. Using the config below I can reach my demo app via www.example.com/shiny/demo/.
However, when I exclude the last slash from the ...
1
vote
0
answers
3k
views
How to filter urls with sub_filter with nginx
I recently was given the task of setting up a proxy and everything works great now, except that I can't seem to filter basic urls with sub_filter.
This code works flawlessly
sub_filter 'anna' 'bob';
...
0
votes
2
answers
798
views
Nginx configuration issue for proxying IDM
I was working on accessing IDM using nginx, but somehow css and js files are not able to redirect properly.My configuration in nginx is as follows:
location /idm/{
proxy_pass https://...
-1
votes
1
answer
123
views
nginx - application url redirection/rewrite
I've got a simple nginx server (myaddress.com) serving my applications using locations.
I added a new proxied site: /myApp/ and when I try to access it - web browser is getting 404 errors trying to ...
3
votes
1
answer
10k
views
IIS Application Request Routing ignore certificate
I use one of development sites as URL rewrite to access other sites.
Unfortunately one of the sites has a certificate error because we access it under VPN under different IP.
IIS says that the ...
2
votes
1
answer
1k
views
How to limit outbound rule scope to a specific site using url rewrite on IIS
I am using url rewrite on a IIS to act as an reverse-proxy.
One of the http services behind the proxy is a portal. The html returned by the portal as many resources that are referenced using a ...
0
votes
0
answers
946
views
Nginx proxy_pass to wordpress blog
I'm trying to serve a wordpress blog from another domain using proxy_pass.
https://blog.domain.example/
to
https://domain.example/blog
I clearly also want to rewrite all the urls accordingly.
What ...
2
votes
2
answers
4k
views
Apache reverse proxy based on header
So I have a configuration for apache that is working in 99% of the cases.
It is checking a header value in the request and based on that it is redirecting to the correct API version url with a 307 ...
0
votes
1
answer
515
views
IIS outbound wordpress site URL in css
I am using IIS and it's listening on port 80 & 443. Now, we need to configure a wordpress site on Apache and to make it work on the defaults port we tried creating a proxy in IIS using URL rewrite ...
1
vote
1
answer
598
views
nginx reverse_proxy from location to specific URL
i'm new to nginx. I've got nginx and a python webserver that listen on ports :5000.
I wanna do something like that www.example.com/berlin and want to get the data from 127.0.0.1/?lat=berlin&lon=...
4
votes
1
answer
6k
views
IIS10 URL Rewrite 2.1 double encoding issue
I have an IIS10 server with ARR 3.0 and URL Rewrite Module 2.1 that acts as a reverse proxy for several other web servers. The other servers run on different ports, so the IIS10 server provides '...
0
votes
0
answers
469
views
nginx rewrite proxy_pass config not working
I have an nginx server with configuration;
server {
listen 9090;
server_name localhost;
root /Users/anonuser/Desktop/workspace/ttttt/portal/design;
which has a set of rewrite and proxy_pass ...
0
votes
1
answer
2k
views
Node JS app with https via IIS reverse proxy
Could you help me with https via IIS reverse proxy?
I set up my nodejs app in local network as http://mayapp.domain.com:8080 and https://myapp.domain.com:8443. It works Ok.
For external access i use ...
0
votes
0
answers
2k
views
NGINX subdirectory with rewrite and proxy_pass
I want the proxy to be able to return everything needed to correctly return what is needed to view http://joelmccune.com through an NGINX proxy location, http://nginx/joel. What I have so far works ...
2
votes
1
answer
5k
views
Nginx reverse proxy trailing slash
This question is already answered multiple times but in my case there is a twist.
I am having a node app which is running on port 3000. I am using nginx to reverse proxy. Now the application only ...
6
votes
1
answer
1k
views
Setting nginx reverse proxy with rewrite to apply to all links in site
I have the following Nginx config:
server {
listen 80;
location /test {
rewrite /test(.*) /$1 break;
proxy_pass "http://www.example.com/";
}
}
This works well for the ...
1
vote
1
answer
1k
views
Apache traffic redirection with proxypass error
Please I need some help with Apache 2.4.18. This is the third day fighting with this problem.
Architecture
www.myserver.com: front server for traffic redirection
internal server with local ip 192....
11
votes
3
answers
67k
views
Add samesite to cookies using Nginx as reverse proxy
With Nginx as reverse proxy, how do you add samesite=strict or samesite=lax to cookies?