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
0answers
35 views

Configure nginx with domain and subdomain

I have set up Nginx with example.com to point to /home/public_html/ which is root folder of app. I also configured Nginx as proxy pass to Varnish and SSL termination. Everything working. As I am ...
0
votes
2answers
57 views

Nginx root not working as I expected

I am trying to achieve the following: The root of my domain http://www.paulix.local/ should server the file located at /var/www/html/main/webroot/index.php The url http://www.paulix.local/...
0
votes
1answer
32 views

Set timeout on specific url NGINX

I already asked this question on StackOverflow but unfortunately no-one had an answer. I am currently using NGINX as a revers proxy (because I am using a few docker containers) for an API (apache) I ...
-2
votes
1answer
40 views

Nginx letsencrypt certbot ssl page will not load over https but will load over http

I am trying to set up a digital ocean server using this tutorial https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04 The site is ...
1
vote
1answer
33 views

Configure Nginx to serve Wordpress or Angular app depending on route on the same EC2 under same domain name

My goal is to serve a Wordpress site for my static pages for routes such as /about-us and /contact and then serve my bundled Angular application for the /login/, /signup/, and the user auth guarded ...
0
votes
0answers
20 views

Logging POST request body in modsecurity

Hello I'm using libmodsecurity (4e6e4243|v3.0.3) on nginx(1.15.12) with the connector being the current master (d7101e13685) and OWASP CRS on (ab24a20faf28156f0|v3.1.0). I am trying to log the POST ...
1
vote
0answers
21 views

Why would Nginx 1.14.2 show version 1.10.3 in error messages

I'm running nginx 1.14.2 on ubuntu 16. I'm having trouble figuring out a 413 error (which I'll address separately), but I noticed that when I post a file to the nginx server, it reports, presumably, ...
0
votes
0answers
16 views

css & js being seen as text with nginx sub location

I have a websiteA which is working juste fine. When going to websiteA/backend, a sub location is used within nginx to serve another website. With my config, a blank page is returned when going to ...
-1
votes
0answers
53 views

Whitelist an IP range using the first two IP octets

I'm trying to whitelist IP ranges but using just the first two octets of the IP instead of the typical 5.6.7.0/24. server { allow 1.2.3.4; # Static. allow 5.6.7.0/24; # Range. ...
0
votes
1answer
22 views

proxy_pass a domain that is protected with cloudflare

Hello I wondered if it is possible to proxy_pass a domain that is protected with cloudflare in nginx? I tried the following: location / { proxy_pass https://domainthatisprotectedwithcloudflare.net; }...
1
vote
1answer
36 views

Nginx: how to proxy pass to same server from different servername:port pairs?

I want to reverse proxy like this: foo.bar.com:3000 -> localhost:4000 bar.foo.com:8080 -> localhost:4000 I think if this is possible, it might look something like this: server { listen 3000 ...
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
33 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
17 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
29 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
57 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
21 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
23 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
75 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
155 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
51 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
32 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
15 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 ...
1
vote
1answer
55 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
10 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
29 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
64 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
15 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
40 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
20 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
24 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
26 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
21 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
11 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
47 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
33 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
14 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
45 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
32 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
134 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
25 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 ...