People who code: we want your input. Take the Survey

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.

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

NginX cannot redirect to React App

I'm quite new to NginX, so my apologies if anything I ask here sounds naive. Lets say I have a DNS www.example.com. Whenever a request comes to www.example.com/ (only /), I want NginX to redirect it ...
0
votes
2answers
2k views

Error 503 Service Unavailable Varnish/Nginx/SSL

I have a setup where Nginx and Varnish are just working fine. Multiple website running on one VPS. Nginx runs on port 8080. I added a SSL certificate to one of the websites to run it in https but ...
0
votes
0answers
23 views

ipv4 and ipv6 of server not redirecting to domain with SSL warning

I use nginx web with ipv4 and ipv6 with a single domain on a server. The following is how it is working currently when I enter each of them in a web browser: http://ipv4 ==> redirects to https://...
0
votes
0answers
11 views

NGINX Disable WebP

I am using NGINX with the image_filter module. Sometimes the images are converted from JPEG to WebP. How do I disable webp entirely or prevent this from ocurring?
3
votes
1answer
8k views

“echo 0 > /proc/sys/kernel/hung_task_timeout_secs” disables this message

One of my server (Ubuntu 12.04, 16CPU, 32GB RAM) runs the app section of my website (Nginx 1.1.19, PHP5-FPM, Php 5.3.10, Symfony2 Web Framework) Suddenly, users started getting HTTP 5** Errors. When ...
2
votes
1answer
3k views

SMTP load balancing with remote host's IP passed through to SMTP servers?

I'm attempting to build a load-balanced SMTP cluster. The mail servers already exist and run Exim 4. Initially, I looked at using Nginx to do the load-balancing, however on the test system all the ...
166
votes
7answers
357k views

Nginx enable site command

We all know how to enable a website using apache on Linux. I'm pretty sure that we all agree on using the a2ensite command. Unfortunately, there is no default equivalent command that comes with Nginx, ...
2
votes
2answers
4k views

How to safely remove www pool and default site from nginx

As you know when you install nginx, it comes with default pool called www and a default site called default. How can I safely remove these two? Because I have created a new pool and site and I want ...
0
votes
1answer
17 views

Cant start wsgi through Nginx

At first: When i started nginx i see errors in log: unix:/root/project/flask_paramiko.sock failed (13: Permission denied) while connecting to upstream uwsgi.ini: [uwsgi] #chdir = /root/project ...
0
votes
1answer
2k views

Unable to locate package Nginx-module-GeoIP

I am working on Debian Jessie 9. I have installed Nginx but there is no GeoIP module. so I decided to install it but "apt-get install nginx-module-geoip" not working giving an error like E: Unable to ...
6
votes
1answer
38k views

nginx recv() failed (104: Connection reset by peer) while reading response header from upstream

I have recently upgrade my magento from 1.5 to 1.9 and when ever I add a certain product to basket, I started to receive this error: 502 Bad Gateway There were no log entries in the var/log/ folder: ...
0
votes
0answers
25 views

Nginx listening on 80 after removing server block

I am trying to restrict http access to my webapp. It should only be accessed using https. my nginx conf file looks like this: server { listen 443 ssl; ssl_certificate /home/...
0
votes
1answer
30 views

nginx: Location block for all URIs without extension

I know how to process URIs that match a certain pattern. Example The following configuration will add an Cache-Control http-header to all files ending with .css or .js: location ~* \.(css|js)$ { ...
1
vote
1answer
1k views

Nginx remove base url

I'm trying to setup Django through UWSGI using Nginx. I got the UWSGI pass to work using this function location / { include uwsgi_params; ...
0
votes
1answer
23 views

How to stop OS/daemon information leakage in dovecot (server_tokens)?

How do I stop dovecot from telling its clients what flavour of linux I'm running and that it's a dovecot imap server? If I connect to my smtp server, I see the following snippet user@host:~$ openssl ...
0
votes
1answer
25 views

Nginx conflicting server name for reverse proxy

I've created a reverse proxy config for my subdomain but when I ran nginx -t it gave warn [warn] conflicting server name "img.somedomain.com" on 0.0.0.0:80, ignored proxy_cache_path /root/...
3
votes
1answer
1k views

nginx + @font-face + Firefox / IE9

Just transferred my site from a shared hosting to Linode's VPS, and I'm also completely new to nginx, so please don't be harsh if I missed something evident ^^ I've got my WordPress site running ...
1
vote
1answer
2k views

Rewriting (not redirecting) a URL in Nginx

I have a situation that I think is a bit different from most. It's certainly different from any that I've encountered before: I'm building a site for a client who wants/needs to retain full control ...
0
votes
1answer
2k views

fastcgi_pass directory not available on Apache + Nginx, how to find it?

I have a CentOS, Apache and Nginx installation. It uses php 5 handler as fcgi. This server uses WHM cpanel and easyapache. fcgi apply by using easyapache. These installation done by my hosting company....
1
vote
1answer
1k views

how nginx serves large files

We have a problem with loading a pdf file which is about 300KB size on our web page. The pdf is being served by nginx. Whenever I load the file, it shows an error saying Failed to open pdf document, ...
-1
votes
1answer
29 views

NGINX: Is it possible to split the `location` configuration block into multiple blocks or even into files?

Update: Interesting.. Those who downvoted my question could you also leave a comment about why you downvoted it? I believe my question is asked way better than many other questions that didn't receive ...
0
votes
0answers
15 views

Host app on sub directory of main app

So I have my main site that's built with react and express. Now I want to add a blog part to my site that's built with next.js. However I don't want to host it on something like blog.example.com I ...
0
votes
0answers
21 views

No static files being served behind Nginx proxy manager

I managed to get a Django project fully op and running with Nginx,Gunicorn and Docker. If I run the container it's fully working when I access it via: http://containername.localhost:port localhost:...
0
votes
1answer
29 views

How to make Jenkins agents port available with an Ingress controller on Kubernetes?

I'm trying to setup Jenkins in a Digital Ocean Kubernetes cluster. I'm using a NGINX ingress controller as I want to access my server from a subdomain (jenkins.example.com). Everything is working fine ...
0
votes
0answers
21 views

nGinx Rate Limit Double-Check

So... I have a need where I need to rate limit bots, and specific IP addresses. I am wondering if this is what I need to do before implementing in a live production environment... map $...
1
vote
1answer
34 views

Why does this regexp match, but not location / in NGINX

I basically have those two locations in NGINX (Return codes added for debugging purpose) location / { return 401; } location ~ "^/(assets|((de|en|es|fr|it|zh|ru)-[a-z]{3}))" { ...
0
votes
1answer
1k views

How to setup a different root for an Nginx location?

I'm setting up my local web dev server using NGINX and PHP-FPM on OS X. I've installed both services and set up a virtual for localhost domain. So far everything works: nginx is running correctly ...
1
vote
1answer
2k views

PHP7 + OpenSSL-1.0.2h on CentOS 7 [Nginx 1.11.1]

Since yesterday, I've applied OpenSSL-1.0.2h to my Nginx server, which I both recompiled from source. For the OpenSSL part, I've followed this guide: https://syslint.com/blog/tutorial/how-to-upgrade-...
1
vote
1answer
2k views

Nginx default_server not working

I'm running nginx 1.2.1 with a couple of services. They all use their on domain and listen on 443 only. I want to lock out people who IP scan my server and don't know the domain. If there is no ...
0
votes
1answer
2k views

setting up nginx rule to restrict access based on IP addresses

I have a url which I can restrict based on IP Address given below. However, what I would like to do is apply the rule to all url's (not included in the rule below) such that if the url request does ...
0
votes
0answers
27 views

why am I getting error for nginx?

I have installed a new ubuntu and new nginx. However, I am created a nginx.conf file inside my website project folder and created a sym link as below ln -s <project>/nginx.conf /etc/nginx/site-...
2
votes
1answer
1k views

NGINX - 404 redirect not working, returning an error code 500

I've recently setup NGINX and had to implement various redirects to manage pages from our older websites that were still returning hits in Google (and other various linked pages). Some of these links ...
0
votes
0answers
13 views

NGINX - subdomain using https to another internal IP:PORT and hide new path

I have spent more than week looking around this site to solve the following two items. Background: subdomains are setup in GoDaddy DNS to forward to our public IP. Internally DNS has forward and ...
0
votes
0answers
13 views

Running NodeJS on a CentOS7 nginx/Apache server

I manage an existing ecommerce site that lives on an nginx/apache server, and the host is also the provider of the ecommerce system we're using. I'd like to turn the ecommerce system into a headless ...
0
votes
0answers
44 views

https://www.example.com and https://example.com should resolve to the same URL, but currently do not

I have been trying to sort this issue but without a success. I will share all the info that I have and if there is anything missing please let me know. Our web developer found challenges to launch the ...
2
votes
1answer
2k views

Nginx gives 404 error for rails app except the root

I have an Ubuntu 12.04 LTS VPS server that serves a static website with Nginx. I would like to set up a rails application that is accesible from the subfolder 'foo'. I use Passenger for serving the ...
2
votes
1answer
2k views

Redmine Base URI /redmine with nginx

I want to do exactly that but with nginx server I wrote below settings but login pages like /redmine/login redirects to /login Please assist. location /redmine { proxy_pass http://...
7
votes
2answers
3k views

How do I pass headers from nginx X-Accel-Redirect back to the browser?

I'm using the nginx X-Accel-Redirect feature where a proxied backend (A) can "internally redirect" nginx to reprocess a new URI (B) as if that were the one originally given by the client browser. It ...
4
votes
4answers
7k views

nginx reverse proxy without base url

I have an application that I can't configure a base url. Let's say that its url is 192.168.1.100:8011 I want to configure the nginx so I can entrer an url like 192.168.1.100/myappand it goes to the ...
0
votes
0answers
20 views

Nginx rewrite dymamic part of url

I have following requests: http://localhost/country1/abc/v1/... http://localhost/country2/abc/v1/... http://localhost/country3/abc/v1/... ... How do I write NGINX rewrite rule to cut /country*/ from ...
0
votes
1answer
86 views

Zabbix server port 10051 is blocked in firewall and need to use only 80 port

I have a zabbix server installed in ubuntu 18.04 in AWS cloud and setup the domain & SSL. The AWS server has a nginx web server running in port 80 & 443 and apache2 is configured in 7526. Only ...
2
votes
1answer
2k views

User directive in nginx generates error despite running as UID root

I'm running nginx on a MacOS X machine, installed with brew, and when I launch nginx, even with sudo, I get the following warning in my log file over and over again: 4/21/11 2:03:42 AM org.nginx[...
0
votes
0answers
5 views

Load balancing RTMP servers on autoscaling mode

I've got a question in my server flow design. That I have Nginx-RTMP server(X.X.X.1) running on EC2 which supports N no of streams together. Now I put it on autoscale and launch a new machine(X.X.X.2) ...
2
votes
1answer
3k 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 ...
1
vote
0answers
29 views

nginx slows down my rest-service by 5x

I have a simple REST service set up that natively (standalone executable) handles 135k/rps. Service is running on localhost:8181 autocannon benchmark running from separate machine yields: ┌───────────┬...
1
vote
1answer
2k views

Routing to subdirectory as new route with nGinx

Here is my current server block (below). I have a separate wordpress blog installed on /blog and need to route /blog to the directory "/home/forge/example.com/public/blog". I've tried a few options ...
0
votes
0answers
36 views

Renew Letsencrypt certificate on Amazon AWS Linux AMI with nginx

I have production and test instances on AWS Linux AMI. On the test instance I am unable to renew letsencrypt certificate with certbot because it requires ACME2 and I am still using old certbot to ...
1
vote
1answer
64 views

Installing Nginx-extras module, downgrade nginx-1.20 to 1.14 on Debian 10

I've installed Nginx 1.20 on Debian 10 following this : Nginx on Debian I need to install Nginx-extras, but after sudo apt-get install -y nginx-extras when I check Nginx -v it returns 1.14.2 ... (In ...
-5
votes
0answers
29 views

But why is stackoverflow the only website of all iver the world [closed]

Where we can have an answer within 5 minutes ? Even codeproject does not offer this. Congratulations I live you stackexchange
0
votes
1answer
31 views

Constant timeouts when conecting from LAN to services behind a reverse proxy

years after my first home server died, i've decided to have one again. This time for the sake of learning and having more flexibility i'm doing it with docker containers. The thing is, i've set up a ...

1
2 3 4 5
304