Quantcast
Channel: Nginx Forum - How to...
Browsing all 4759 articles
Browse latest View live
↧

Can use different certificates on backends, each with a different server_name

I currently have one load balancer and four backends server configured to proxy_pass several subdomains under one domain using https protocol. The ssl certificate for this domains are all defined on...

View Article


CORS policy: No 'Access-Control-Allow-Origin' header is present on the...

Here is the code: location ~ \.php$ { include snippets/fastcgi-php.conf; include fastcgi_params; fastcgi_pass unix:/run/php/php7.2-fpm.sock; fastcgi_param SCRIPT_FILENAME...

View Article


CORS errors when hosting MathJax

I am trying to host MathJax on our location network (IP 10.0.x.y, no hostname) using the following nginx config: server { listen 80; server_name _; location ~* \.(ttf|ttc|otf|eot|woff|font.css)$ {...

View Article

Re: How do I Reverse proxy to different sites and servers

You need for each of them a different "location" directive.

View Article

Subdomain configuration with Letsencryt wildcard TLS

What I want to do ? I have two application on local ports and I want to access them like that : - maindomain.com -> node.js app - sub.maindomain.com -> .net core app My DNS config -...

View Article


Unable to execute mysql group by query

Scenario : in order to group the records with same ID , I tried using group by query but eventually it isn't getting executed. I don't see any error message, but the query fails to execute with blank....

View Article

Re: Trace ID

Set a session cookie and track that in your logs. Cheers, --j.

View Article

Re: How to log all HTTP header?

How about setting a variable "headers_all" to a Javascript function that collects all headers from request.headersIn[] and returns the concatenated string in some defined format? You can include that...

View Article


Why isn't Nginx distributing traffic as a load balancer in a Docker container?

I have Nginx v.1.17.3 running in a Docker container to act as a load balancer. While I have gotten it to work in the past with a different version, I have not done it recently with this version. The...

View Article


Re: How to log all HTTP header?

And as I had to find out myself just now, this suggestion I made does not work because you cannot enumerate the elements of the special objects r.variables and r.headersIn. It does work if you want to...

View Article

Permit access on the base of HTTP value header or IP address

Hi, i would like to implement restriction on the base of specific value in http header (currently implemented and it works) or specific IP address. So if the traffic has specific http header value OR...

View Article

Nginx reverse proxy not working to Shiny Server hosted on AWS Lightsail Instance

Hi there, I've posted this on Stack Overflow and hoping someone can help me here. I am new to nginx and am trying to configure a reverse proxy to a Shiny Server (Open) that I have successfully...

View Article

Nginx stops sending request body when upstream server consuming body while...

Hi there, I use Nginx as a reverse proxy. My client sends 20M data to Nginx, and Nginx received all of them (I can view 20M file in /var/lib/nginx). But when Nginx tries to proxy the 20M data to...

View Article


Re: Nginx stops sending request body when upstream server consuming body...

It's an old jetty. The current version is 9.4.20, so you may consider upgrading. In any case, however, Jetty limits the size of uploads by default. You will have to adjust this parameter to accomodate...

View Article

Re: Nginx stops sending request body when upstream server consuming body...

Hi j, Thanks for your reply! I tried to update jetty version to 9.4.19, but still got same result(9.4.20 causes error in my environment). I think it's not caused by Jetty, because when client sends...

View Article


How to install a nginx-only domain in a server running Vesta (apache + nginx)?

Hi I have a Cloud Server in a local hosting company with Ubuntu Server 18.04 installed. I've already successfully installed Vesta Control Panel with these settings: Web: nginx + apache FTP: vsftpd...

View Article

Re: Nginx stops sending request body when upstream server consuming body...

Ok, then let's start with the usual suspects: did you set client_max_body_size?

View Article


Re: Nginx stops sending request body when upstream server consuming body...

Yes, currently my location configurations is like this: location / { proxy_set_header HOST $host; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Real-IP $remote_addr; proxy_set_header...

View Article

NGINX/RTMP/HLS

Hello! We are a school, trying to move away from our old coax system for live video announcements. I came across NGINX using OBS early this year, and we are trying it out. For the most part, it's...

View Article

switching nginx-apache to using SSL

I am having web-site nginx port 80 with proxy_pass http://10.7.1.3:80 to apache port 80 how to switch all this to 443 port with using SSL certificate? when i make config for SSL certificate working...

View Article
Browsing all 4759 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>