Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
428 views

Apache Cannot See PM2 Node Process

I have Apache running on Ubuntu 20 and I keep getting this error in /var/logs/apache2/error.log: [proxy:error] [pid 7064] (111)Connection refused: AH00957: http: attempt to connect to 127.0.0.1:4000 (...
Clifton Labrum's user avatar
0 votes
0 answers
263 views

Apache reverse proxy to Node server bypass

I have an Apache server that is working as a reverse proxy to a node server. I'm trying to bypass the proxy for a static file i.e. ads.txt I have the following conf: <Files "ads.txt">...
John Sourcer's user avatar
0 votes
2 answers
4k views

Blocked loading mixed active content

I am using react as my font end, and nodejs as backend which is running on localhost:3016 and I used nginx as reverse proxy and load balancer; this my nginx conf file for the site upstream ...
Metasebiya Mulugeta's user avatar
2 votes
0 answers
8k views

Apache reverse proxy to Node - Connection refused: AH00957

I am trying to get a brand new cloud based server working with a default version of 20.04 server ubuntu working with apache and node. The node server appears to be running without issues reporting ...
Jamie Hutber's user avatar
0 votes
1 answer
417 views

Nginx rewrite with proxypass

I have an Nginx running in the front of a node js server (next.js). I'm trying to write my Nginx config in order to achieve this behavior, I want to add the hostname as the first part in the path ...
Amir Saadallah's user avatar
0 votes
1 answer
3k views

Using Reverse Proxy Nginx in a docker container

So trying to setting Nginx as a reverse proxy using docker - I have three node js containers (one frontend and two backend services) the frontend service calls the two backend services. So I want ...
Reuben deVries's user avatar
0 votes
1 answer
931 views

Nginx reverse proxy to a node express fullstack app not working

I have a fullstack node express which serve static files and the api running on port 5000. my nginx config is : server { listen 80 default_server; listen [::]:80 default_server; ...
aestheticsData's user avatar
-1 votes
1 answer
1k views

Nginx reverse proxy not working

I know this is a very common problem, but I can't seem to find the solution to it, and I'm new to Node JS and Nginx. I'm trying to run my Node JS app on port 80 of my site at example.com using a nginx ...
coderpr0grammer's user avatar
0 votes
1 answer
1k views

Nginx fails to proxy to Node

I have a running Node app that is live and works fine on http and https. I setup Nginx and it is also running fine, tested with an sshtunnel, and it is getting a correct response from static files (...
jlanssie's user avatar
1 vote
1 answer
923 views

Nginx + Express app in subdirectory/location, returning 404

I want to make an express app accessible through http://website.com/app and use nginx as a reverse proxy as well as to serve static files. This is my nginx configuration: upstream app { server ...
Felix's user avatar
  • 11
1 vote
2 answers
23k views

What would cause "Connection Refused" with simplest nginx centos setup on GCE?

Update I followed the same steps as below except on a generic VPS provided ( Not google ) and it worked as anticipated including unlisted steps such as enabling HTTPS with Certbot... So my presumption ...
Dapper's user avatar
  • 13
0 votes
1 answer
3k views

curl nginx as proxy server with "-i" works but with "-I" 404

i'm trying to make nginx as proxy_server to nodejs app on port 3000 for testing purpose with compression, when doing this: curl -I -H 'Accept-Encoding: gzip, deflate' http://localhost/json i go this: ...
Younes Keraressi's user avatar
0 votes
1 answer
3k views

Apache reverse proxy to nodejs server on CentOS 7 (WHM)

I'm trying to setup my site on the server. I've uploaded it and it's currently running on the server but the problem comes when I try to setup a reverse proxy on the domain so that I can access the ...
James's user avatar
  • 1
0 votes
0 answers
561 views

Configure Apache Web Server (shared hosting) to provide simultaneous Web and Websocket Access

I'm trying since some days to find a way to configure simultaneous websocket and web server connections with one same Apache Web Server I have on a shared hosting basis. Now, before giving that up and ...
DevelJoe's user avatar
  • 197
0 votes
1 answer
410 views

secure reverse proxy apache server still getting requests to other domains in access log

I've been trying to setup apache (port 80) as a reverse proxy to a nodejs server (port 3000) and I made the mistake of launching my apache server with ProxyRequests On. I discovered this error after ...
Dan's user avatar
  • 3
0 votes
1 answer
1k views

Cannot reach Node.js application over HTTPS

I have an node.js application that is running on port 3000. Infront of it i run an nginx reverse proxy. It works fine for port 80. I have tried to install an certificate with certbot. Now i have the ...
Ilijanovic's user avatar
0 votes
0 answers
42 views

Nginx non-'base' location into base proxy_pass, location not being inherited in frontend

I can't figure out how to word the question properly, but I'm pretty sure someone has encountered this problem already and I just can't figure out what keywords I should be looking for. So here's the ...
ZekiraDrake's user avatar
0 votes
1 answer
2k views

Apache reverse proxy to nodejs server on CentOS 7.7 (WHM)

I'm trying to setup an apache reverse proxy when accessing mysite.com to 127.0.0.1:3001, by setting up a virtual host in the WHM > Apache Configuration > Include Editor > Post VirtualHost Include (all ...
vstruhar's user avatar
  • 101
0 votes
0 answers
222 views

static resources behind a reverse proxy server

Two localhost web servers are developed separately without the knowledge of each other and proxy server. Both setup using NodeJS and Express.js app.use(express.static(__dirname + '/frontend')); From ...
Konsy's user avatar
  • 1
1 vote
1 answer
2k views

NodeJs app through Apache proxy - no static files

I have a question similar to: Apache ProxyPass ignore static files, but I'm not able to solve mine, so looking for some help. I have this .conf file: <VirtualHost *:80> ServerName hci.local ...
Paul Allsopp's user avatar
2 votes
2 answers
2k views

How to manage static content for high-loaded website via nginx?

My understanding is that nginx is well-suited for serving static content. But i can't find any information with regard to how well it's for serving very big amount of static content. Let's say i use ...
jerichofs's user avatar
0 votes
0 answers
160 views

Setting up nginx to run more then one nodejs app on https and redirect every http request to https

Nginx is redirecting the http to https successfully. Both apps are up and running on port 3000 and 3001. But only the app on port 3000 is accessible in browser by visting example.com. Whenever I try ...
Udit Bhardwaj's user avatar
1 vote
1 answer
2k views

My Web application gives CORS error after adding HTTPS using Let's Encrypt

This is my application : https://cfslpro.com/student_portal/ Front end is done by AngularJS and back end is done by Node.JS. Hosted in Apache server. ( Digital ocean Linux 16.04 ) You can try login , ...
Chanu De Silva's user avatar
1 vote
1 answer
1k views

Reverse proxy nodejs on nginx with prerender enabled

I would like to run NodeJS with express web server in a combination of prerender, inside nginx. What I have so far is a stable configuration for reverse proxy, which works fine - there is also a ...
marc_s's user avatar
  • 153
2 votes
1 answer
3k views

nginx configuration for subdomain and proxy server

I was trying a lot of other post solutions here and no one can help me to solve my problem. I have a simple nginx configuration with https and a node.js app with the main path / and for a subdomain ...
proquibas's user avatar
0 votes
1 answer
437 views

Node + nginx reverse proxy never works until I restart nginx

I have a Node.js app that I run on port 8204 on a Vagrant VM (Ubuntu 16.04.3) (Windows 7 x64 host). Whenever I start up the Vagrant VM, ssh in and start the Node.js app like this: > npm start I ...
Jake Wilson's user avatar
  • 8,964
1 vote
1 answer
21k views

502 from Apache over HTTPS with reverse proxy to Node server on different port

I have a node application running on port 3030 for an API which I want to access over HTTPS. If I visit http://api.example.com:3030/*** I can load a 200 response with no problem so the node ...
Robert's user avatar
  • 113
0 votes
1 answer
2k views

Reverse Proxy is set up on a server. Which redirect to a node js web applicaton. And the css and js of the application are not loaded

The node js web application is running on a server. e.g : https://9.55.168.37/myapp There is a server (https://9.51.168.47) where a reverse proxy is set up and configured to redirect to the node js ...
kmon's user avatar
  • 43
0 votes
2 answers
4k views

apache nodejs proxy server

I have created a node program that it's working on http://example.com:3000/node/index.html and I want to "hide" the port (3000). I have been reading that I need the a proxy server so I configured ...
Sebastian's user avatar
1 vote
0 answers
5k views

nginx reverse proxy Nodejs - 404 not found

I have a simple NodeJS application that needs to display a few webpages. I have the Node app running at http://localhost:3100 and want to use an NGINX Reverse Proxy to allow users access to the app ...
Kris Stadler's user avatar
1 vote
1 answer
8k views

Using ProxyHTMLURLMap to redirect css and js requests

I already have apache 2.4.19 installed on my Ubuntu 16.04 working with Tomcat. I'm trying to add a node app and redirect all requests for /node to http://localhost:3000 with ProxyPass. My node app is ...
Gpack's user avatar
  • 123
0 votes
1 answer
319 views

Forward or Reverse proxy?

I have a webapp running on CentOS 7 with Apache that uses the xmlhttprequest and fetch apis to access an Express Server (NodeJS) running on the same machine. My webapp is using port 80 for incoming ...
MateoIO's user avatar
  • 103
1 vote
0 answers
3k views

HTTP request works on browser, fails on everything else

What am I doing Two NodeJS/HTTP servers running on ports 3000 and 3001 Using Nginx to proxy requests app.localhost -> localhost:3001 api.app.localhost -> localhost:3000 What's wrong ...
OverCoder's user avatar
  • 143
2 votes
1 answer
5k views

HTTP/2 between Nginx reverse proxy and Express

I have an Express web server behind Nginx reverse proxy. The Nginx is configured for HTTP/2. Is it better to leave the default http1 connection between Nginx and Express, or is there worth in ...
steakoverflow's user avatar
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 ...
Dmitriy N. Laykom's user avatar
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 ...
Minato Namikaze's user avatar
0 votes
0 answers
818 views

NGINX, proxy cache and dynamic URI

I have a NGINX reverse proxy that sits in front of a node.js server (express). With a pretty basic configuration. The problem I'm running into is with NGINX's proxy caching feature. Here's the setup. ...
Snarf's user avatar
  • 111
0 votes
1 answer
4k views

Node js server is not working with apache proxy in ubuntu

I'm running Node js server in port 8080. Apache is running in port 80 with https. I wanted to run Node in apache with https. I followed tutorial from here. Here is my config file. Node.conf: `<...
Sarath Kumar's user avatar
0 votes
1 answer
2k views

Proxy machine to forward SQL Server request onto another SQL Server machine in the Azure cloud

So a current problem is that we inherited many machines that have total of about 500 application exe's. We are physically moving and have realized that someone had not saved source code and there are ...
Jeremy Miller's user avatar
3 votes
2 answers
2k views

nginx as proxy for WebSocket: inspect and block certain requests

I ran NodeJS as a kind of Webapplication Server serving an AngularJS frontend. They communicate solely over WebSockets, using the SailsJS implementation of Socket.IO. Between frontend (client) and the ...
cis's user avatar
  • 247
1 vote
0 answers
3k views

Nginx returns 403 Forbidden on certain api/* routes occasionally only

I use Nginx as a reverse proxy for node.js server and I have following routes, that start with: - /api/... - /auth/... If I open my site in incognito mode and try to submit a form to persists it to ...
user2814599's user avatar
0 votes
1 answer
310 views

Hosting a Node.js app (Cloud9 SDK) and using Apache as reverse proxy (over HTTPS) won't work

I've been pulling my hair out trying to get this to work. I'm trying to host the Cloud9 SDK (Node.js) app on port 8080 (or whatever port higher than 1024) and use Apache as a reverse proxy over HTTPS ...
Andrew Lamarra's user avatar
-3 votes
1 answer
953 views

Is it possible to set same port work with http and https?

I've nodejs application which port number is 3001 and this app working with http but not work with https. On apache server, set the revers proxy for 80 or 443 to 5001 and set revers proxy for 3001 ...
rgg's user avatar
  • 55
1 vote
1 answer
2k views

CONNECT Method Allowed in HTTP Server Or HTTP Proxy Server Vulnerability

My setup details: OS : RHEL7 Webserver : Apache http server(SSL enabled) AppContainer : NodeJS Webserver connects to NodeJS via mod_proxy. I blocked the connect method in apache ...
Fred's user avatar
  • 11
3 votes
0 answers
2k views

Nginx and Apache are very slow as reverse proxy for NodeJs app with socket.io [closed]

I installed Nginx on an Ubuntu server 14.04 as a reverse proxy to redirect traffic coming to a single IP address to multiple NodeJs running on different ports. It also redirects HTTP to HTTPS. Here's ...
vpx's user avatar
  • 133
0 votes
1 answer
809 views

Why does my nginx proxy fail, but my node.js proxy works?

I am trying to setup an nginx server to reverse proxy data from two different servers via ajax. Only one of the requests is working however. The other gives me a No 'Access-Control-Allow-Origin' ...
Oliver Schöning's user avatar
3 votes
1 answer
953 views

What is a reverse proxy exploit?

On this question I found this particular part of code in an Apache configuration file: # rewrite rule to prevent proxy exploit RewriteCond %{REQUEST_URI} !^$ RewriteCond %{REQUEST_URI} !^/ ...
adelriosantiago's user avatar
0 votes
1 answer
2k views

Deployment of node js app listening on two separate ports under nginx

I have a simple node.js app that listens to two ports: on 8001 it sets up a simple webserver by doing var express = require('express'); var gHttpApp = express(); gHttpApp.use(express.static('public'))...
Neenster's user avatar
  • 101
2 votes
1 answer
4k views

Nginx: connect() to xxx.xxx.xxx.184:3000 failed (22: Invalid argument) while connecting to upstream,

This is my first time asking question on serverfault. If I miss something, please do let me know! I have been trying to solve this problem for two days now. Still can't find a solution. Here's my ...
sammkj's user avatar
  • 29
0 votes
0 answers
96 views

Can we not enable ngix to act as reverse proxy and webserver, based on url?

This is my config file server { listen 80; server_name localhost; root /var/www/example/public/; location / { try_files $uri $uri/ $uri.html =404; } location /api { ...
Santosh's user avatar
  • 111