Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
2 answers
362 views

telnet to port 80 (nginx), with forward to apache2 at port 8080, fails with 'connection closed by foreign host' and no explanations seemingly anywhere

i'm running an Kubuntu 22.04 server, and want to shuttle LAN-only traffic from port 80, served as far as i can tell by nginx, to port 8080 served by apache2 (for PHP purposes). but i'm getting this &...
Rene Veerman's user avatar
1 vote
0 answers
820 views

nginx: Uncaught (in promise) ChunkLoadError: Loading chunk

I installed Sentry self-hosted 23.1.1, and configured nginx/1.22.1 as frontend proxy. If I access the Docker port, Sentry loads fine, while if I pass through nginx I get the error in the subject. It ...
Maxxer's user avatar
  • 302
0 votes
1 answer
2k views

Nginx patch request ends up with Invalid CORS request

It's simple set up. Three docker containers in same network. ReactJs - production build on nginx server Spring Boot Mysql GET, POST request works like a charm but when i try to use PATCH request i ...
Lucas's user avatar
  • 1
0 votes
1 answer
702 views

CORS prevent js window.onerror from subdomain reporting informations

To log Javascript errors i have set up a function with window.onerror which trigger an ajax request and inform me about script errors. I load all my static files from a subdomain and if an error ...
delato468's user avatar
  • 103
4 votes
0 answers
3k views

List of all Permissions-Policy header keys and values?

Does someone have a list of all Permissions-Policy header keys and values? What I have: more_set_headers "Permissions-Policy: camera=(self), fullscreen=(*), geolocation=(self), payment=()"; ...
uav's user avatar
  • 564
0 votes
1 answer
4k views

What is right syntax for nginx sub_filter directive when string has ambiguous characters?

I am trying to use sub_filter to replace pieces of this code in a .js file. SYNO.SDS.AzureSSOUtils = function() { var a = 600 , c = 500 , e = (screen.width / 2) - c / 2 , d = (...
Alex Balcanquall's user avatar
1 vote
0 answers
2k views

CORS error despite CORS being enabled in app server and Nginx

I have a web application and server which is fully functional in a debugging environment, however when it's hosted for production, I get the following error in the browser console: Cross-Origin ...
Ray A.'s user avatar
  • 111
1 vote
1 answer
3k views

nginx set different document root for a proxypass

I'm just trying to run a nodejs app I made on a proxypass domain, and have it work exactly as it did on my desktop. However, for some reason, even though I defined a seperate document root for this ...
Jake t's user avatar
  • 127
2 votes
1 answer
11k views

nginx connection refused while connecting to upstream

I have a server on which I've deployed an API (Sinatra). I run that API on port 9292 and proxy requests to it. I also need to deploy a static javascript file and its supporting resources. I do that ...
RubyRedGrapefruit's user avatar
0 votes
1 answer
36 views

how to point parts of a single url to 2 different servers using nginx

I have pointed a location /tanya to an address http://52.221.238.24/tanya;, I also want /tanya/t/ to point to the same IP. However, I need to point /tanya/dynamically_generated to point to another IP ...
Subrat Dash'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
4k views

Nginx - Even after adding the directive 'access control allow origin' the request logs error

I am trying to run nginx infront of my nodejs application (I am using windows machine) My NodeJS Application is running in 3000 port I have started the Nginx at 8070 port When i try to hit http://...
VJohn's user avatar
  • 119
0 votes
1 answer
1k views

Nginx Cache status Miss even after adding caching

I am new to caching on nginx. I have been trying to set caching on server but X-Cache-Status is giving a MISS even after adding configurations for css/js/and images. This is leading to high load time ...
prit kalra's user avatar
0 votes
1 answer
838 views

Nginx as cache: Location extension matching

I want to use a nginx container as proxy-cache. My goal is setting-up an CDN using docker swarm with N replicas of that container. Well, i have a html page that points at this URL: 172.17.0.1:9000/...
pier92's user avatar
  • 21
2 votes
1 answer
3k views

CSP nginx nonce

I have some problems with adding CSP to my site. I configured Content-Security-Policy-Report-Only in my nginx configuration. And i get this. adsbygoogle.js:37 [Report Only] Refused to apply inline ...
Hasanagha Aliyev's user avatar
0 votes
1 answer
6k views

NGINX - Cannot set Cache-control for redirected .js files (with alias + rewrite)

I have successfully setup an nginx server which uses both alias + rewrite as in the below configuration. Everything works except that javascript files are not enforced browser caching. Server url: ...
CEDA's user avatar
  • 3
0 votes
0 answers
157 views

Meteor JS issues on failover (Delay in reconnection)

Our meteor deployment contains two meteor nodes, behind a network load balancer (Google cloud NLB which simply passes on requests to a target pool of 2 Ubuntu 14.04 meteor instances). Each node has a ...
Danny Z's user avatar
3 votes
0 answers
283 views

Query string parameters get shuffled

We're observing some strange behavior of the data send to our systems from a javascript since 9/9/2015. The problem shows up when the query string is send to our servers. Some values of the ...
tobias's user avatar
  • 31
2 votes
0 answers
1k views

Can't go to route using nginx and Express.JS

So I have express.js set up behind nginx and when I go to website.com/users, I get a 404. But when I go to website.com, the page loads fine. This appears to be all other routes too, I can't get to ...
John's user avatar
  • 29
2 votes
0 answers
1k views

nginx proxy with CAS

I have a JS application that issues REST calls from the client browser to a data source that sits behind nginx. We need to implement CAS authentication for the application to manage access. However ...
nick_v1's user avatar
  • 365
0 votes
1 answer
180 views

Nginx redirection to url writen in requested file

I need to setup dynamic redirections. For example, a user open a link : http://www.example.com/2/3/4/ and see the page on the following address: http://www.example2.pl/something. I know about ...
Thomas's user avatar
  • 3
0 votes
1 answer
121 views

nginx not starting with multiple nodejs apps

i have this config in sites-enabled/default upstream domainone.com.ar { server 127.0.0.1:9000; } server { listen 80; server_name www.domainone.com.ar; rewrite ^/(.*) http://domainone.com.ar/$1 ...
andrescabana86's user avatar
21 votes
4 answers
40k views

How do I configure Nginx proxy_pass Node.js HTTP server via UNIX socket?

I am trying to configure a Nginx server to connect to a Node.js HTTP server via a UNIX domain socket. The Nginx configuration file: server { listen 80; location / { proxy_pass http://unix:/...
pvorb's user avatar
  • 1,080