A full-featured http proxy for node.js
Questions tagged [node-http-proxy]
271 questions
0
votes
1 answer
How do I inject a snippet after the opening body tag in a reverse-proxied response
I get an HTML page from upstream the following format:
...
...
…

Amin Shah Gilani
- 8,675
- 5
- 37
- 79
0
votes
1 answer
node.js node-http-proxy: How to avoid exceptions with WebSocket when target in proxy.web
Using http-proxy (aka node-http-proxy) in node.js, I am having trouble figuring out how to proxy web sockets when the target is determined dynamically (i.e. when processing the request).
Looking at the…

Dave
- 320
- 3
- 9
0
votes
1 answer
node-http-proxy return content is blank
I have a https proxy to an apache server
The apache server is behind the node proxy at https://localhost:444
var httpsServer = https.createServer(options, function(req, res) {
sslproxy.web(req, res, {
target: "https://localhost:444"
…

Nate Cheng
- 414
- 6
- 11
0
votes
1 answer
Establish http-proxy to support my Angular requests to a remote non-CORS server
I develop an Angular 1.6 single page application which is served by a static express server.
The Angular application should send async requests to a remote server over which I don't have control.
Unfortunately this remote server doesn't answer…

LBA
- 3,859
- 2
- 21
- 60
0
votes
1 answer
Node HTTP Proxy: Trying a different endpoint based on response
In short, we're using https://github.com/chimurai/http-proxy-middleware
and if the initial proxied endpoint returns a 404 or 500, we'd like to lead the request to a different endpoint instead.
i.e.
-> http://www.example.com (404)
->…

Sherwyn Goh
- 1,352
- 1
- 10
- 19
0
votes
1 answer
node http-proxy and HTTPS
I am having issues getting https working with node http-proxy.
I've created a server using node http-server
forever /usr/local/lib/node_modules/http-server/bin/http-server /home/blah/public_html/ -p 5000 -S -C /myencrypt/blah.com/cert.pem -K…

K3NN3TH
- 1,458
- 2
- 19
- 31
0
votes
1 answer
How to send HTTP error from http-proxy?
Is it possible in http-proxy to do not forward requests to the server, but at once return a response with some error code, for example with 401 Unauthorized?
I need analyze request body and in some cases do not forward requests to the server.
is it…

Volodymyr Bezuglyy
- 16,295
- 33
- 103
- 133
0
votes
1 answer
How to access website content from onother server with express or http
How to access website content from another server with Express or HTTP
I have a website that holds all data like template website for example
and I have 3 more websites that get access this website template content HTML CSS everything inside website…

George C.
- 6,574
- 12
- 55
- 80
0
votes
1 answer
Node.js http-proxy traffic monitoring
I'm trying to set up a proxy server that should return the http requests from any page that I'm accessing.
Basically, if I navigate to www.google.com then I'm expecting to get the following requests:
Is this achievable using node-http-proxy…

Valip
- 4,440
- 19
- 79
- 150
0
votes
2 answers
How to run Django and node.js app on same dyno in Heroku?
I have an Django app deployed on Heroku, but due to some requirement I had to create a basic nodejs file and I wish to run it on the same dyno.
I googled for solutions but couldnt come up with much apart from the blogs, which all are same…

Maverick
- 2,738
- 24
- 91
- 157
0
votes
1 answer
How do I run multiple Apps on Express without routing?
I have 2 apps I am looking to add to my profile website which itself is an express app.
I want to run these apps under a /projects route such that we can have localhost/projects/app1 and localhost/projects/app2
I want all the sub routes for each app…

Ayabonga Qwabi
- 306
- 5
- 12
0
votes
0 answers
Timeout after around 50 sec
I am using express with http-proxy in my application. There's one file upload API which takes more than 2 minutes because I am uploading a file which is to be processed in the backend. when I hit it from browser, I get 504 timeout error after around…

nir_sharma
- 59
- 8
0
votes
0 answers
Setting up a website template system in node.js / hapi - virtual hosts
I am working to build a web application that can direct various domain names to template sites in hapi / node. Any suggestions on how I might best set this up would be appreciated. What I've tried is below:
Server 1 has a web application with…

Greg M
- 125
- 9
0
votes
1 answer
How to get request's body using http-proxy?
I want to write a simple proxy which will save body of specific POST request to file.
I tried http-proxy but the problem is i do not know how to get request's body. There are headers and some other info, but no body in req object. Here is what i…

Kirill
- 6,762
- 4
- 51
- 81
0
votes
1 answer
How to get NodeJS to proxy Client Certificates like Jetty Proxy
I am writing a NodeJS proxy that will replace a Java Jetty Proxy. I am using node-http-proxy. The only piece remaining is to have the original client certificate passed along to the proxied server.
From my understanding, the Java Servlet…
user130532