Questions tagged [proxypass]

ProxyPass in Apache, and proxy_pass in nginx, are directives used to specify which backend or remote server should process the request

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

ProxyPass Apache 2.4 simple proxypass not working

i have the following situation: i need to call the following url http://myapp.mydomain.com and the url should reply as following http://myapp.mydomain.com/index.jsp On my apache 2.4 i tryied ...
0
votes
0answers
18 views

Reverse proxy Rest-API endpoint

I have trouble configuring the reverse proxy for my setup. I have a frontend built using Angular and a backend built using Spring (running Spring boot currently) Now, i have already configured ...
0
votes
1answer
31 views

ProxyPass not working - Apache2

<VirtualHost *:80> ServerAdmin callumokane123@gmail.com ServerName server.maniabots.xyz ProxyPreserveHost On ProxyPass / http://localhost:3000/ ProxyPassReverse / http://localhost:3000/ </...
1
vote
1answer
24 views

Using apache proxypass to direct to different servers based on path

I have the following in my default site config: <VirtualHost *:80> ProxyPreserveHost On ProxyPass / http://127.0.0.1:8080/ ProxyPassReverse / http://127.0.0.1:8080/ ...
0
votes
0answers
21 views

nginx tcp proxy routing based on sni

I want to build a tcp proxy based on SNI. The upstream backend is an openshift cluster and I want to block access to certain projects by ip. so the idea is to use a tcp proxy with multiple VIPs. Use ...
1
vote
1answer
16 views

use proxy or redirect to file if cookie is set and only for a subdirectory

I am currently trying to send the request either through a proxy or to a PHP file based on a cookie. The rule only apply to /api. This is what I have so far. It is part of my VirtualHost Config: ...
0
votes
0answers
17 views

nginx proxy_pass upstream TLS protocols not preferring higher version

I'm attempting to proxy_pass to a backend and nginx will not use TLSv1.3 and always uses TLSv1.2 instead, unless I only add TLSv1.3 in the proxy_ssl_protocols directive. The problem with this ...
0
votes
0answers
20 views

Nginx proxy serving .mp4 files

This question is more related to the theory itself. I'm using a simple proxy_pass script to rename host_header. But nginx is using my server bandwidth to serve the video. Are there an way to force use ...
0
votes
0answers
117 views

Can I use snap to install nextcloud on a server already running Apache?

Nextcloud is an open source cloud data server. On OS's with snapd you can install the whole thing as a snap: sudo snap install nextcloud That seems magical, but I am stuck there. My server was ...
0
votes
0answers
23 views

How to hide “the HTTP request header” from target server log point of view with apache2 reverse ProxyPass

Summary : We are a team of 5 person around the world and we want to be able to connect ourself to a commercial domain with only a single IP Adress (Apache Proxy Server IP adress) in order to be seen ...
0
votes
0answers
218 views

Nginx reverse proxy-Hide server ip address

I have configured nginx as reverse proxy with many addresses configured in backend section. This is configuration: upstream backend { server xxx.xxx.xxx.xxx:4000;} server { listen ...
0
votes
0answers
22 views

How do I configure nginx to use redis instead of local disk with proxy_cache and proxy_cache_use_stale?

I'd like to set up a reverse proxy to a REST service that uses HTTPS. The proxy needs to store cached responses in redis (not on disk). If the REST service is down or times out, I want the proxy to ...
0
votes
0answers
21 views

Error 404 when connecting to websocket behind nginx proxy_pass

I would like to serve up a websocket behind a location on my webserver. For example, if my domain is http://mydomain I would like my websocket to be available at ws://mydomain/ws. I am running a ...
0
votes
0answers
54 views

Nginx: How to map the internal Ip addresses and proxy using ngrok without redirecting

I have two device which can be accessed only using internal network. To access it externally i have installed nginx in raspberry device and added a redirect within nginx like location /device1 { ...
0
votes
1answer
35 views

How to Set Regular Expression for Nginx Location Block and Proxy Pass?

I would like to ask about some configurations for Nginx; How to setup regular expression in Nginx location block? this is my configuration location ~ ^/web/api/v1/([A-Za-z]+) { proxy_pass http://...
0
votes
0answers
24 views

Apache reverse proxy - Resources have incorrect URL

Application context root: https://somehost.eu/app/ Page request URL: https://somehost.eu/app/management/regions Proxy mappings: ProxyPass /app http://serverhost:25260/app ...
0
votes
0answers
26 views

nginx Listening But Not Responding on non-80/443 Port

nginx on Mac OS X is running via brew successfully on ports 80 and 443. However, I am trying to run on a different port 18000 and nginx does not want to respond, despite listening to the port. ...
0
votes
1answer
143 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 ...
0
votes
1answer
79 views

nginx - proxy_pass on user_agent

I have a SPA site, where I need to load the appropriate <meta> tags for each subpage, but it is not that easy from the subpages themselves so I made a separate address where Facebook or Twitter ...
0
votes
0answers
58 views

nginx permanent redirect with url parameters to a proxy_pass resulting in duplicated url parameters

I have a url for a product which has been replaced and requires a permanent redirect, to another product page for the replacement. The replacement product page is served by a proxy_pass. In my context ...
0
votes
2answers
130 views

Redirecting webhook with nginx

I am changing the domain name of my app from old.com to new.com My app is connected to external APIs that send data through webhooks, and I would like to redirect the webhooks sent to the old url, so ...
0
votes
0answers
10 views

RewriteRule with ProxyPass - Post Method Changed to Get

We have tried the following code in our server. There is a query string in POST method. Based upon the query string we will use proxypass for some users and for others, we will use same script. After ...
0
votes
0answers
43 views

proxy_cache based on extension

I have a nginx proxy like this: proxy_cache_path /var/nginx-cache/ levels=1:2 keys_zone=m3cache:10m max_size=2500m inactive=1m use_temp_path=off; proxy_cache_key "$scheme$...
0
votes
1answer
160 views

reverse proxy - understanding proxy pass - apache mod_proxy

im running tomcat on my linux server and i want use a reverse proxy for this. After reading the manual in apacha for mod_proxy , i didnt really understand the /path in the proxypass . i make a small ...
1
vote
1answer
40 views

How to prevent other people from proxy_pass their own domains to my domain?

People can use Nginx to proxy_pass to my domain and on the browser, the contents are mines, but on address bar it's their domains. How to detect when the requests are thru' proxy_pass and deny those? ...
0
votes
0answers
58 views

nginx reverse-proxy a single URL to a custom server single URL

I have designed a page on a static page provider, and I'd like to make it available when browsing a domain I own www.example.org (which hits a nginx server) Target : https://www.example.org/a/b --> ...
0
votes
0answers
22 views

Proxy request to another domain does not return me Js and css file(Apache)

I made a request from "mydomain.com/something" and i need to proxy all the request to a "something.mydomain.com". I use this function to do this: ProxyPassMatch /(.*)$ "http://$1.mydomain.com" The ...
0
votes
2answers
98 views

How to setup Proxy Server For HTTP Request on Cloud

I would like to setup a Proxy server, The job of the proxy server is to be Web Proxy service https://www.techopedia.com/definition/31705/proxy-service https://www.proxy-service.de/, but on a small ...
0
votes
1answer
78 views

Apache HTTP to HTTPS Proxy Redirect multiple addresses

I need your help. I have 2 versions of the application running on the Linux machine. Version1 runs on localhost port 5000, version2 runs on localhost port 5001. I need users to be able to access ...
0
votes
1answer
175 views

NGINX stuck in endless redirect loop when trying to use auth_request

nginx version: 1.14.2 Im trying to use nginx auth_request to authenticate users for accessing a subdomain on which a page is served that i cant otherwise influence. I have a python + flask based ...
0
votes
1answer
56 views

nginx with proxy_pass returning wrong proxy_set_header

I am doing reverse proxy: server { listen 90 ssl; server_name 192.168.5.11; location /myshop/ { proxy_pass http://192.168.5.10:80/another_shop/; proxy_set_header Host $...
0
votes
2answers
289 views

How can I proxy_pass all addresses after a location / with nginx?

I'm running a node.js application called serve that shows the files and folders from a specific path of my computer on a webpage: This application works fine by itself and I see no error messages ...
0
votes
0answers
63 views

Redirecting in NGINX with masking target URL

I've set up redirection on NGINX with the help of this answer and now I want a setup it with masking redirection from user, i.e. keeping original example.com. Things I've tried: rewrite server{ ...
0
votes
0answers
27 views

Nginx vs Envoyproxy - ReverseProxy

I am using currently some Nginx reverse proxy with mod "proxy_pass" to forward http listener to https remote site, I would like to know what is the equivalent with envoyproxy? Thank you.
1
vote
1answer
54 views

How to remove a subpath from an URL in nginx proxy_pass?

Here is the configuration for my reverse proxy server: server { listen 8085 ssl; server_name localhost; location / { proxy_pass http://192.168.85.56:8080; } } For an incoming path, e.g.:...
0
votes
1answer
500 views

How do I send secure cookies using node and a ProxyPass/ProxyPassReverse (Httpd/Amazon linux)

I am still pretty new but I am using an Amazon linux image and httpd to encrypt and decrypt SSL requests. Then I Proxy those messages to and from a NodeJS app running on port 3001. To do this I have ...
0
votes
1answer
42 views

How to fix ProxyPass in URL and subfolder?

I made a proxy pass adding to my localhost instance the path /vocab/arch. Here the configuration I used: <IfModule mod_proxy.c> ProxyPass /vocab/arch http://localhost:...
0
votes
0answers
146 views

Most efficient way to securely serve static files (videos) to auth'd users using node.js and apache/nginx

I have a primary application server based on node.js. I implemented an authorization middleware using json web tokens (jwt). I want to serve static video files with securely with authorization after ...
0
votes
1answer
111 views

Is it possible to use nginx stream to filter SSH connections?

I'm trying to setup a nginx egress proxy so that all the SSH connections to a specific group of hosts (*.example.com) go through the proxy. I have a local DNS server, where I resolve such hosts to the ...
2
votes
1answer
55 views

Nginx proxy_pass long directive

i want to do proxy_pass from https://foo.bar/api/v1/users/{userId}/store/{storeCode}/status to https://bar.foo/api/v1/users/{userId}/store/{storeCode}/status and also from https://foo.bar/api/v1/...
1
vote
1answer
50 views

Proxy_pass all request for a specific IP but serve static file for all other IPs

I have an nginx proxy in front of my webapp. I want to update the app from time to time and during the update I want the users to see a static page that informs them that the app is having a downtime. ...
0
votes
0answers
16 views

apache2 Basic Proxy Pass not working

I am currently trying to set up a Vhost which links to a NodeJS App running on another port, however I can't make it work. The vhost enables without any problems and apache2 reloads/restarts without ...
-2
votes
1answer
46 views

nginx proxy_pass works on http but fails on https

When I pass http:localhost:9000 to proxy_pass then it is working. But When I pass https:localhost:9000 then it fails pid /var/run/nginx.pid; worker_processes 2; events { worker_connections ...
0
votes
0answers
25 views

Migration from Apache 2.2 to Apache 2.4 - Processing order of ProxyPassMatch and Rewrites

We use a local webserver as a proxy and cache to speed up access to multiple CMS of the same type. Therefore we cache the static files (within a special folder) while forwarding all other requests ...
0
votes
1answer
631 views

XAMPP how to secure forward proxy for port 443

I need some help with securing my test XAMPP server on ports 80 and 443. I am running Apache 2.4.7 on Windows 7 machine. The setup is the following: I am redirecting all traffic coming on my server ...
2
votes
1answer
1k views

XAMPP deny access from specific external IP address

I need some help with securing my test XAMPP server as so far nothing I have tried seems to work. I am running Apache 2.4.7 on Windows 7 machine. The setup is the following: I am redirecting all ...
0
votes
1answer
76 views

Is there a way in nginx to proxy any url?

I would like to have an api like this: my-proxy-server.com/http://example.com/foo.pdf that streams a response from http://example.com/foo.pdf. Note in this case http://example.com/foo.pdf is just an ...
0
votes
0answers
49 views

AWS, Nginx : Redirect data from a ElasticSearch domain to nginx domain

We have our app-code running on AWS, inside a non-default VPC. All the logs are redirected to an ElasticSearch instance. There is a Kibana URL available, but it's only accessible if you do local port-...
1
vote
0answers
481 views

nginx proxy_pass fails to serve static files

I have been trying to achieve the following, thought failing miserably for days now. I am trying to reverse proxy 2 services based on url paths as per follow: http://host/api/ => http://backend/ ...
1
vote
1answer
890 views

nginx reverse proxy all path to an express angular nodejs app

im developing an app using express nodjs as backend for the api's and developing the frontend with angular7 when iam ready to deploy copy all *js, *html from the angular app build to a public/ path in ...

1
2 3 4 5
10