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
32 views

Error with CORS Policy When Accessing API

I try to get through the ebay Auth application grant flow, but I have a problem, because I can't read the response ebay gives me. The problem relates in CORS policy problems and the exact message says:...
0
votes
0answers
27 views

Docker container not accessable from the internet

I have a problem with my Docker installation. I want to run a nginx server that is accessible via the internet. I took the following iptables rules from my old server, which runs nginx without a ...
0
votes
0answers
14 views

How to proxy JSON as CORS solution?

There are a lot of comments on the web, no one simple and objective. I need to use on http://myDomain.etc/_ipGeo/${ipNumber} another site service. Imagine a proxy to http://ip-api.com/json/${...
1
vote
0answers
38 views

nginx - send file which is being written to

What can i do if i need to send file which is not on current server and i don't want to waste the time of client for downloading on my server? I can't use proxy_pass to file server because i need to ...
1
vote
0answers
30 views

Configure NGINX by passing CLI parameters instead of config file

I am looking for a way to change some config parameters dynamically before running NGINX. Perfectly by using command line parameters. I want to write a bash script that takes for example two ...
2
votes
1answer
36 views

Convert nginx rules to .htacees

I am trying to convert my nginx blocks to apache(.htaccess) file but not able to achive it. Can you please help me with this location = /index.php { if ($arg_a = get) { return 301 /$arg_a/$...
0
votes
0answers
25 views

Nginx serving wrong website using subdomain

New to all this so please bear with me. I have one existing website set up using nginx (fusiondiscordbots.com) however, I am wanting to add a second on the subdomain - dashboard.application-bot.com. ...
1
vote
1answer
41 views

Kerberos - TCP client wants 1195725856 bytes, cap is 1048572

I'm having some difficulties debugging this error. I'm running nginx as an api gateway built to make a sub-request to kerberos whenever an endpoint gets called using the SPNEGO method. But whenever I ...
0
votes
1answer
125 views

nginx gunicorn django 502 worker timeout just on some pages

I configured a django app with gunicorn and nginx all was working perfectly until the installation of SSL certifiate on the server. firstly all pages were served perfectly but after some time some ...
0
votes
1answer
98 views

OpenVPN behind Nginx reverse proxy

I have an OpenVPN server on a machine that can only be connected to via IPv6, due to my ISP being not too generous with IPv4 addresses. To resolve this issue, I created a DigitalOcean droplet, ...
0
votes
0answers
24 views

nginx returns 404 although the server is running and log files are being written. In the root it returns 403. Details inside

I'm not a sysadmin, I'm just a vision programmer who's trying to set up his friend's API in a localhost. I'm using nginx, and the config file my friend gave me was this: server { listen **.48....
0
votes
1answer
49 views

404 Response from NGINX when trying to setup mediawiki short urls

I have NGINX setup to serve content over localhost with HTTPS. Using the following location block, I can serve mediawiki just fine (it is in the /w folder) location ~ /w/(.*)(\.php)?$ { index index....
0
votes
0answers
19 views

nginx entire site case insensitive without redirect

I have several WordPress sites that I've inherited managing. On this one particular site, running nginx, (and CloudFlare if that matters) you can use any case on pages after the URL. For example, ...
3
votes
3answers
219 views

Redirecting from https to http?

Strange problem here. I use FullCalendar to initiate an ajax request to an endpoint on my server. Endpoint is: https://my_website/events/?start=2019-03-31&end=2019-05-12&_=1555698739056 ...
0
votes
1answer
19 views

Server with Froxlor UI; Permission error with PHP FPM and nginx

I'm running a vhost that provides a Froxlor web UI for configuration. Froxlor generates the config files for everything in its scope automatically. The problem I'm currently facing is that Froxlor ...
0
votes
0answers
57 views

How to filter urls with sub_filter with nginx

I recently was given the task of setting up a proxy and everything works great now, except that I can't seem to filter basic urls with sub_filter. This code works flawlessly sub_filter 'anna' 'bob'; ...
1
vote
2answers
202 views

what is the upper limit of net.core.somaxconn?

I want to increase the maximum number of connections that can be queued for acceptance by NGINX, for this nginx documentation suggested to increase the somaxconn. 1) what are the min and max limits? ...
0
votes
0answers
110 views

Configuring TCP services with nginx ingress on minikube/k8s

I'm new to k8s/minikube (and to some extent, unix networking in general) so if I ask something that seems to make no sense, I'll be happy to clarify! Goal I want to configure a port-based TCP ...
0
votes
0answers
26 views

how to use htaccess rules with nginx reverse proxy?

I am using nginx as a reverse proxy for apache . Now I'm in a situation where I'm passing PHP requests to apache to handle and other static files are being handled by nginx itself . In this situation ,...
0
votes
0answers
55 views

Why do I get a 110: Connection timed out error, white serving a flask app through nginx and uwsgi?

I am trying to serve a flask application using nginx and uwsgi, through an ubuntu docker container, while the host is also an ubuntu 18.04 OS. This is the conf file for the nginx server, for which I ...
0
votes
0answers
35 views

Setting up NGINX to choosing between serving static files / proxy to backend based of user agent

I need to serve static file (index.html) with react running on it to everybody except google, facebook & twitter (plus some short list of other good bots). My idea was to use something like ...
0
votes
0answers
42 views

Same file server root directory for multiple domains over different network interfaces for each domain

I currently host a 16TB CentOS ESXi Virtual Machine with 1 virtual interface with a public static IP behind a Nexus 3K switch in my datacenter serving a web archive over Nginx to the public. ...
0
votes
1answer
34 views

How to remove /?nonamp=1 URL nignx wordpress

I want to remove my WordPress site /?nonamp=1 URL part.Because wordprss shows 400 errors for this pages. Googlebot regularly access these URL's. I want to redirect above url parameter to clean url. My ...
0
votes
2answers
49 views

Line breaks in PHP's stack trace in nginx error logs disturbing logstash analysis

I am using nginx with PHP-FPM and ELK as log file analysis. When a PHP script causes an error the interpreter the error will be send back to nginx and nginx puts the error into the error.log file. ...
0
votes
0answers
45 views

Nginx and git-http-backend via X-Accel-Redirect

Im getting a strange error from Django which authenticates GIT-users from an Nginx-server. All git.example.com/g urls are forwarded with uwsgi to Django. Django authenticates the user (Basic Auth) and ...
0
votes
0answers
35 views

Unable to figure out nginx config file of 2nd subdomain on ubuntu 16.X server

I'm new to nginx server. I need to run 3 different code bases based on domains and sub domains in ubuntu 16.X server. domain.com sub1.domain.com sub2.domain.com In my /etc/nginx/sites-available ...
0
votes
0answers
33 views

Unable to run WSO2 UI consolr i.e carbon using Nginx reverse proxy server

I want to access wso2apim using reverse proxy server with following location. https://wso2am:9443/carbon ---> https://nginx-ip/wso2am/carbon I have configured wso2am/store and wso2am/...
0
votes
1answer
27 views

redirect to a different localhost based on url nginx

I'm using docker to create multiple containers and I'm trying to redirect calls coming to my website to the relevant container. for example, if someone tries to go to http://wavenapp.com/bot/test1/...
1
vote
1answer
42 views

PHP Not working through Symlinks (CentOS, Nginx, PHP-FPM, PHP7)

When I use this config, PHP files work in the base folder (/var/www/dmcblue.com/www). But I added a symlink there as data from /usr/share/phpMyAdmin. Files are accessible (like http://[IP_ADDRESS]/...
0
votes
0answers
25 views

How to add a location for PHPMyAdmin in NGINX?

I have a webserver running on port 4567 and my website running on port 80 & 443 (SSL) so I moved from Apache to Nginx to support load balancing. Everything is working fine with the below script ...
0
votes
0answers
21 views

Local NGINX reverse-proxy to containered apps

I set up my server years ago and installed NGINX. Recently I added Gitlab as a container and added Nextcloud (also as a container). Now I wanted to check if my configuration is well built and add ...
1
vote
0answers
10 views

Nginx config to make request from one server, then another (FE then BE)

Is there an easy way to configure nginx to proxy one server, and if that request fails (4xx or 5xx) try another server? GET /index.html -> try backend dev server -> 404 not found -> try ...
0
votes
0answers
17 views

How to enable immediate expiry with cache revalidation

My application uses nginx fastcgi cache with fastcgi_cache_revalidate enabled. Some requests should appear to the end user as immediately expired with all requests to the cache revalidating with the ...
2
votes
1answer
80 views

How do I get Nginx to work with subdirectories? [Nginx, Let's Encrypt, basic auth]

What I want: I want to install Mautic in a subfolder of my web root. I have a domain https://example.com and I want Mautic to be accessible from https://example.com/mautic. What I have: I have a ...
0
votes
1answer
28 views

nginx and relative urls in html and css

i want to setup a server like this dev.mydomain.com dev.mydomain.com/mysite1 (alias /var/html/mysite1) dev.mydomain.com/mysite2 (alias /var/html/mysite2) What I want to achieve is for dev.mydomain....
0
votes
0answers
61 views

Gitlab registry in Container behind nginx proxy get 502 for registry

I have been searching for days for my mistake to reach the gitlab-registry behind a nginx proxy. Unfortunately in vain. This question (gitlab docker registry ...) describes a solution, but it doesn't ...
0
votes
1answer
25 views

Nginx logs for multiple timezones

In my nginx config, I have several servers block. Each block has its own access/error log in different path. server { server_name 1 access_log /path1/access_log <-- use UTC } server { ...
0
votes
1answer
43 views

Error related to disk while changing instance type from c4.large to c5.xlarge for ubuntu linux machine

I am providing user data to linux machine by cloudformation and its working fine when i am using c4 class type(example: c4.large, c4.xlarge) while it stop working when i am changing instance type in ...
0
votes
1answer
41 views

nginx showing default page on wan but not lan

When I access my nginx webserver on lan, it shows me the correct webpage I have setup. For some reason when I try to connect to it through a different network, it returns the default nginx page. It is ...
1
vote
0answers
28 views

how to setup secure websockets with nginx

I have a webserver running on port 9000 I want to make it available on port 80, and also I want to make a websocket connection available on port 9021. If i run this over http everything works fine. ...
2
votes
1answer
93 views

Setting up HTTP Load Balancing with Nginx Ingress Controller

Could somebody write up the steps of setting up HTTP Load Balancing with Nginx Ingress Controller for Google Kubernetes Engine? I followed this GKE tutorial for a basic Ingress. It got a Forwarding ...
1
vote
2answers
51 views

nginx : simple configuration with proxy_pass fail

I try a simple configuration with an nginx v1.10.13. The configuration : events { } http { server { listen 80; location = /loc1 { proxy_pass http://192.168.0.5:80/; ...
1
vote
0answers
38 views

nginx pfp-fpm - “No input file specified.” when serving files from /home/user/**

I have a setup where the user uploads multiple PHP sites to a projects folder in the user's home directory (/home/{user}/projects). And the sites are individually configured; serving things like ...
1
vote
0answers
44 views

Issue Apache behind Nginx

I have nginx proxying to apache as a backend in order for nginx to handle static assets. Unfortunately when I attempt to visit main domain it just displays page not found. I get 404 error for these ...
2
votes
1answer
148 views

Nginx Ingress 504 timeout - EKS with ELB connected to nginx ingress

We are using a NLB in AWS connected to our EKS cluster via a nginx ingress controller. Some of our requests get a random 504 gateway timeout. We think we debugged the problem to our nginx ingress. ...
3
votes
1answer
42 views

node js app issues after AWS Instance snapshot

I had a node.js app with nginx running totally fine on a domain i purchased. It was run on an ubuntu server and all was well. I accidentally clicked "create image" on the aws site and ever since then ...
0
votes
0answers
42 views

Nginx changes headers of files served from an upstream server unintentionally

I have a setup in which Nginx 1.15 is running as reverse proxy to an asp.net core application. I have added some Content-Encoding headers to files served by asp.net core appliaction. I can see it is ...
1
vote
1answer
40 views

DigitalOcean NGINX Server Port 80 Refused

I am having a really annoying issue with my digitalocean droplet running nginx as my web server. UFW is disabled on it and HTTPS does work, but HTTP using CURL on my mac at home gives me connection ...
0
votes
1answer
113 views

nginx deny to allow a single IP

I'm trying to set up an nginx config that allows only one source IP to access /admin. I tried the following nginx.conf: user root; events { } http { server { listen 5000; location ...
0
votes
0answers
63 views

PHP-FPM doesn't create the socket when run as non root user

I am creating a Docker image that run NginX and PHP-FPM (with Supervisor). The container is run as www-data, but the PHP-FPM socket is not created. Here are my config files : www.conf [www] listen =...