Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [nginx]

Nginx ("eNgine x") is a lightweight, high-performance HTTP server, reverse proxy, TCP stream proxy and mail proxy, released under a BSD-like license.

0
votes
1answer
55 views

504 Timeout Using to Many cUrl From Website That is Down

I have a dedicated server with 32 gb ram / 8 processors. I use on all my sites cUrl php displaying some code. The website from where I make the cUrl is a VPS where I use another cUrl with multiple ...
0
votes
1answer
35 views

nginx rewrite url changes url in browser too

here is my nginx config for port 80. location / { rewrite ^ https://$host$request_uri? permanent; } location /admin { rewrite ^ https://$host:7000$request_uri permanent; }...
0
votes
0answers
18 views

how run Nginx+ssl on multi port

ive run nginx on port 80 and 443 with lets encrypt ssl license and it work perfectly without any problem. ive run docker for our front with nginx on same server, now backend and front are run on http ...
0
votes
1answer
19 views

nginx workers stack at 100% usage after X random days

I am facing a strange incident, under which my two nginx workers suddenly get stack at 100% of CPU usage after a random number of days and at the same web traffic, under which they are behaving fine ...
0
votes
0answers
42 views

Hot reload site (webpack-dev-server) behind nginx reserve proxy docker

I try to setup a nginx container as proxy for my development site running on webpack-dev-server. Unfortunately, I got the problem with loading the static files (404 not found). When the request reach ...
0
votes
1answer
62 views

NGINX Proxy pass keep wrong redirect port

First, would like to apologize to post this. I am already searching this issue, try and error but still didn't get answers. Please dont mad at me. Ok here is my single config file: upstream app-...
0
votes
0answers
15 views

How do disable Nginx file uploads completely or enable it only on certain locations

Is there a way to tell Nginx to completely discard file uploads (or the entire POST body) for certain locations? Say I have a location block like so: server { listen [::]:80; listen 80; ...
0
votes
0answers
11 views

nginx -s reload not loading all .conf files

I am having issues with nginx -s reload system centos 7, I am running the latest 1.16 from the nginx repo When I issue a nginx -s reload it fails in loading all the conf files. When I do a ...
0
votes
0answers
29 views

Nginx rewrite proxy pass (For node react app)

I am running a Node React app on localhost:3000, which I am reverse proxying with Nginx and exposing on localhost/web/. However, there are issues with the files generated by the app, because they are ...
0
votes
0answers
24 views

SSL for multiple ports with single domain - ubuntu with nginx

I'm trying to setup SSL for multiple ports in Ubuntu with nginx. I have a domain wpdev1.tk. Currently it is working on with and without SSL. I have another web application which is running on same ...
-2
votes
1answer
95 views

404 Not Found nginx/1.15.9 (Ubuntu)

I am running a PHP Website Where all Sub Pages are showing 404 Not Found nginx/1.15.9 (Ubuntu) But Homepage and Admin Panel {example.com/admin} is working fine. I am running Php website which is ...
-1
votes
2answers
158 views

Having Trouble Setting Subdomains On NGINX

I'm currently setting up OpenMediaVault on my Rock64 Single Board PC which is based off Debian and is configured through the web GUI running from NGINX on port 80. I'm currently trying to install ...
0
votes
2answers
53 views

Slow Queries WordPress Site (500k visitors a month and 150k posts)

I'm running a WordPress site with 500k visitors a month and 150k posts with in average 100 pageviews every second. I am trying to figure out if the load on the server is normal or if there is ...
1
vote
1answer
41 views

How to deploy a WSGI/Python app behind Nginx on Windows?

Coming from the Linux environment, I'll try to be as accurate as possible with Windows concepts I clearly don't master. Here's my current situation: I have a functional Windows (10 pro x64) Nginx ...
0
votes
0answers
16 views

Amazon ELB with Nginx-Proxy

I have multiple applications running behind an Nginx proxy. I am using Elastic Beanstalk multi-docker deployment to deploy the setup in production. The problem is that Elastic load balancer requires a ...
2
votes
1answer
64 views

nginx - Security headers within location block?

I have been testing the security headers (https://securityheaders.com) of my nginx setup and wanted to check peoples opinion with nginx suffix location blocks. Currently, I get 'A+' for http(s)://my....
-1
votes
0answers
11 views

Why nginx ignores this auth_request completely? [duplicate]

Why nginx ignores this auth_request completely? nginx.conf server { listen 80; error_page 403 = @error; location = /auth { return 403; } ...
0
votes
1answer
10 views

Can 'return' rewrites exist within a vhost with other hostnames?

We're using Nginx as a reverse proxy to pass traffic into our infrastructure which responds to foo.com and *.foo.com host headers internally. We have an http server configured whose sole job it is to ...
0
votes
0answers
30 views

Nginx rewrite of sitemap in subfolder leads to 404 error

I want altnews.in/hindi/sitemap_index.xml to load the contents of altnews.in/hindi/index.php?sitemap=1. I am using the following rewrite rule in nginx, but I get a 404 error. rewrite ^/hindi/...
0
votes
1answer
72 views

Why am I unable to make OCSP Stapling work with my nginx, libressl on FreeBSD 12.0-STABLE setup?

After hours of trying I have to get help for my issue. I am trying to get OCSP stapling to work with my setup, but am not successful in doing so. Here is my nginx configuration, without any non-...
0
votes
0answers
16 views

nginx global password protect ignore let's encrypt validation

I have a staging server where I have the need to add a global htpasswd protection for all sites on it Because of the setup, I have needed to put this directly in the http block of the main nginx.conf ...
0
votes
0answers
60 views

nginx ssl error, no “ssl_certificate” is defined in server listening on SSL port while SSL handshaking

when i add comodo ssl to nginx server on centos 7 i got this error 6925#0: *1045 no "ssl_certificate" is defined in server listening on SSL port while SSL handshaking, client: 2.89.238.146, server: ...
0
votes
0answers
21 views

Convert Nginx Conf to use different roots for each location

I am trying to modify my Nginx config so that the /tablet & /mobile locations are served from their own root. I believe i need to add Alias definitions to my locations but not quite sure about ...
0
votes
1answer
27 views

Multipart ranges in Nginx reverse proxy

I am trying to setup Nginx as a reverse proxy. The upstream server is serving some media files. Because of the large amount of requests for these files and also since these files are not going to ...
0
votes
0answers
28 views

Disable nginx fastcgi cache URI normalization

I have a wordpress website runing on nginx and i have activated fastcgi cache for it. the problem is when a page get cached from nginx fastcgi the key name become like this KEY: httpGETwww....
0
votes
0answers
33 views

How to configure CORs to allow external request?

I'm a bit confused as to how to setup CORS on my nginx server. Basically, I want to access a .cgi script on one of my server, from one of my other sites. So I have this nginx config: location ~* \.(...
0
votes
0answers
15 views

How to redirect to www using nginx, certbot and Symfony config?

I want all the pages of my website to redirect to www..I am using the default Symfony 4 configuration for nginx, and also added certbot to manage the https certificates. server { server_name www....
-1
votes
1answer
20 views

hosting express server with nginx

I want to host my express website with nginx on aws. So I followed this tutorial, but replacing the express app with my own app, and after changing the port to the same as my express app, I fired up ...
0
votes
0answers
13 views

Location Proxying with AzuraCast

I want to proxy example.com/api/nowplaying to example.com, and I've tried: server { ... location / { location /api/nowplaying { if ($http_headerwashere = '') { ...
1
vote
1answer
49 views

How to Fix: Nginx Conflicting Server Name

I have three nginx server blocks: One: /etc/nginx/sites-available/default server { listen 80 default_server; listen [::]:80 default_server; root /var/www/html; index index.php index....
0
votes
0answers
38 views

How get works symfony 4, cors, localhost, nginx

i have such nginx config: server { listen 127.0.0.1:80; server_name wtf; root /home/egor/PhpstormProjects/wtf/public/; client_max_body_size 32m; location / { if ($...
-1
votes
1answer
16 views

Nginx detecting number of clients `curl`ing/`wget`ing or otherwise currently downloading content?

I plan to host some bootstrap files that need to be updated every 24 hours, maybe more often. I plan to serve the files using nginx, how can I ensure that I only replace files when 0 people are ...
0
votes
0answers
17 views

Need to use Nginx to proxy requests for JIRA on Plesk Subdomain [closed]

I want to access my JIRA via jira.example.com. I followed this official instruction; Integrating JIRA with Nginx First, I set up the connector. Then created a subdomain via Plesk, added this ...
2
votes
1answer
26 views

What does nginx's %hostdir% mean?

In one nginx sample configuration there was such block: location / { root "%hostdir%"; index index.php index.html index.htm; } While I understand what it means I ...
0
votes
0answers
52 views

How to reverse proxy https over ip with nginx?

I have a server that connects to another through a VPN, this server will be used as a reverse proxy in our private network, what I want is to only allow https calls to the server in our private ...
-1
votes
0answers
39 views

How to detect safari browsers in nginx

I've been searching during the last 24 hours and trying different solutions and so I have not been able to make nginx successfully detect safari browsers. I need to detect this since Safari browsers ...
0
votes
1answer
190 views

Can not restart Nginx, “Job for nginx.service failed because the control process exited with error code.” [duplicate]

I have a digitalocean droplet with Ubuntu 16.04 running on it. I am serving mostly static sites from it with Nginx, but it suddenly stopped working. (As you might understand from this intro, I am ...
1
vote
0answers
27 views

Securing authenticated API calls with NGINX reverse proxy

First of all , apologies for being an Nginx newb. We utilize third-party API's that require authentication and we want to secure the API key by setting up a reverse proxy in Nginx. I'm pretty sure I ...
0
votes
1answer
32 views

Can't visit service other than server machine, a seperated backend and frontend project

I have asked a related question but has solved it already. Using nginx provided a reverse proxy. The config file is taking from project document, I paste it below. Current situation is: The backend ...
0
votes
2answers
79 views

Nginx will not listen on ipv4 port 443

Nginx will not listen on ipv4 port 443. It listens on ipv4/6 port 80 and ipv6 port 443 but not ipv4 port 443. Debian Stretch 9.8 - currently updated Installed nginx-full package with apt root@...
1
vote
0answers
46 views

nginx + uwsgi + django 502 bad gateway on aws ec2

I have successfully installed nginx and uwsgi on aws ec2 instance. But on hitting the public IP its showing "502 bad gateway". Though both nginx and uwsgi server status is running and active. The ...
0
votes
1answer
51 views

Double slash in URL is automatically converted in single slash in $_SERVER['REQUEST_URI']

I am working on one site where I need to show 404 pages when someone adds double slash in URL. I have written logic to check REQUEST_URI and if there is double slash then I am showing 404 pages... ...
0
votes
1answer
57 views

Nginx: How to set default server for same port but different server name

I need to serve 2 servers from one IP with 2 different server names but same port. name.one.com:443 --> 192.168.10.1:80 name.two.com:443 --> 192.168.10.2:80 Question How do I set different ...
0
votes
0answers
38 views

How to dynamically configure Nginx load balancer to send specific requests one server

For the purpose of debugging and testing, I am looking at ways to send requests pertaining a particular, say customer ID, from the Nginx load balancer to a specified machine. I am using Nginx on my ...
0
votes
0answers
22 views

How to add subdomain with nginx and route 53?

I have let's say example.com and it's running on EC2 instance with nginx and i need to run api.example.com on the same ip of the EC2 instance as example.com i tried to create record set in route 53 ...
0
votes
1answer
22 views

ModSecurity, expirevar wont work

I've enabled modsecurity in my nginx k8s ingress using this guide, then I've added the following custom rules to block potential brute force attack # Block by ip # Retrieve the username SecAction "...
1
vote
0answers
61 views

Nginx Redirect to EC2 Instance

ORIGINAL I had angular (version: 7) site which was deployed on S3 bucket, but for SEO purposes, recently I integrated Angular Universal. Now I moved site/frontend from S3 bucket to EC2 instance. I ...
2
votes
1answer
21 views

nginx proxy_pass returning same contents for all requests

I've got a system that's a proxy_pass into a bunch of AWS resources, and as such the IPs are changing all the time. In an attempt to not have to be reloading nginx constantly, I'm moving proxy_pass to ...
0
votes
0answers
29 views

Nginx doesn't serve file when cors configured

I host an angular application on a nginx server. I need to configure cors as well, because I need ressources from a different domain. But when I configure my cors policy as shown below, my nginx ...
0
votes
0answers
79 views

How to set up S3 bucket with nginx?

I've encountered with the problem. I created S3 bucket with default permissions and uploaded files for my website (js, css, html) but when i try to access it via browser i get access denied. So i set ...