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

Elasticsearch 404 attempting to create index through nginx proxy

I am attempting to proxy Elasticsearch through nginx. Most things seem to work, but one thing that is having problems is creating indexes. This works when connecting directly to ES: curl -XPUT http:...
0
votes
0answers
16 views

nginx 400 Bad Request (Invalid Hostname)

I've configured nginx as a front-end load-balancer across three nodes of a web application I've constructed. nginx continually returns 400/bad request - invalid hostname errors regardless of the ...
0
votes
0answers
15 views

Nginx redirect on folder request but allow subfolders of that folder to pass

I have the following Nginx config which i want it to apply 2 rules. Rule 1 When the URL request contains the subdirectory /shop to be 301 redirected to the frontpage of the website. For example: ...
0
votes
2answers
24 views

nginx proxy_pass only works with complete filenames

I have an nginx which should proxy the path domain.de/pihole/* to a docker container running pihole. If I use the IP of the docker dontainer (172.20.0.2) the index.php is loaded, 172.20.0.2/admin and ...
0
votes
0answers
25 views

Wordpress on Heroku not Working

I am having problems getting a simple WordPress site to run on Heroku. I wrote my wp-config and deployed it with WordPress 5.2.2 to a php nginx dyno on heroku. First I tried manually populating the ...
-1
votes
0answers
22 views

Your connection is not private (nginx, bluehost, google cloud and cloudflare)

I host a site in compute engine in google cloud with Nginx on Debian, I use a Bluehost domain and a Cloudflare SSL. My site web sometimes works and sometimes not and show me this message: Your ...
0
votes
0answers
13 views

Pagespeed unable to optimize part of website assists

I have nginx 1.16 with pagespeed 1.13.35.2-0. the issue is that pagepseed able to optimise images in main page but not other pages. with no error or suspicious logs. where any images exist under ...
0
votes
1answer
27 views

ModSecurity dependency not found?

1. yum groupinstall 'Development tools' 2. yum install -y geoip-devel libcurl-devel libxml2-devel libxslt-devel libgb-devel lmdb-devel openssl-devel pcre-devel perl-ExtUtils-Embed yajl-devel zlib-...
0
votes
0answers
39 views

Digital Ocean: Droplet to droplet communication using private networking?

I am working to configure Nginx as a load balancer and reverse proxy requests to a Node application on a different droplet. I have two Digital Ocean droplets (Ubuntu 18.04 for both) and have enabled ...
0
votes
0answers
10 views

Error messages in firewalld log file Set fail2ban-ssh doesn't exist

I have got the following error messages repeating in firewalld log file. 2019-07-19 14:18:20 ERROR: COMMAND_FAILED: Direct: '/usr/sbin/iptables-restore -w -n' failed: iptables-restore v1.4.21: Set ...
1
vote
1answer
18 views

Nginx ( Openresty ) Proxy, Adding custom headers to static files

I'm trying to add headers to static files , How can I do it properly ? I tried nesting but didn't work server { location / { proxy_pass http://apache.backend.local/; ...
0
votes
0answers
32 views

NGINX Load Balancer and Multiple Virtual Web Servers On Same Computer?

I'm going to be deploying software that I'm developing as a SaaS product in the future. I would like to create a "startup" network that can simply be expanded as the number of customers increases ...
1
vote
1answer
147 views
+100

Website suddenly doesn't open in Safari and iOS devices

I have this website that was working fine until recently. Now users are reporting that it's not opening in their iphones and ipads. Doesn't matter what browser you try on iOS, it just won't work. ...
0
votes
0answers
12 views

Issues with Nginx returning 302/307 instead of 200/500

I'm using Nginx to load balance / Reverse proxy a website. Setup is 1 Machine for load balancing + 3 Machines to host the web content. Site configuration is as follows : upstream api_app { ...
0
votes
1answer
29 views

php-fpm can't handle concurrent connections

I'm dealing with a problem that a server with 98GB of RAM and 24 CPU cores can't handle 40 concurrent connections. Using ab tool I'm sending 40 requests with all being sent at a time: ab -n 40 -c 40 ...
0
votes
0answers
11 views

Can't use method return value in write context in nginx

I just used a nginx server. I use codeigniter as a php framework for my website. if I access my website's default controller, it runs smoothly. but when I move to the dashboard page, I get the look ...
0
votes
0answers
9 views

SSL haproxy proxy protocol connection to nginx and allowing direct connections without proxy protocol

We have a setup where most connections go through haproxy then to our nginx service without SSL termination. We can implement the proxy_protocol to have haproxy send the IP of the source (which is ...
0
votes
0answers
19 views

nginx and easyengine - do I need both of them on the same server

I have never used EasyEngine before. My server is an AWS. I had an nginx server running before to divert traffic to my domain request. Recently, my friend needed to host her website on my server ...
0
votes
0answers
24 views

Server serving double SSL Certs

I was an idiot 6 months ago and installed some none working SSL cert. Now I have manage to find certbot and it had confirmed a sucessfull install. However, i still get served the old cert. I don't ...
1
vote
0answers
29 views

nginx rewrite browser address have an abnormal url splicing occurred

I want to implement the following with nginx: https://www.example.com/project1 --> /data/www/pro1/public https://www.example.com/project2 --> /data/www/pro2/public Here is my nginx configuration: ...
0
votes
0answers
12 views

Nginx error when setting SSL certificate (SSL: error:02001002)

Background I've been using the Zulip chat client which runs on top of Django and is served by Nginx. The SSL parts of the file zulip-enterprise in sites-available looks like this. listen 443; ssl ...
0
votes
1answer
16 views

Nginx configuration works in production but not in docker

I've been working towards dockerizing our production environment, which consists of a React frontend which makes API calls to an Nginx server. The Nginx server reverse-proxies all the requests to an ...
0
votes
1answer
13 views

Java multiple HttpSession IDs for the same user

I have some problem with sessions. When I try my project from local sources and refresh several times a JSP that contains the following code: <h1>Session ID=<%=session.getId()%></h1>...
0
votes
0answers
10 views

Nginx: Proxy pass is adding port number when trying to open directory without trailing slash on end

Everything works well except this part when a directory has no trailing slash in URL and it adds port and timeout page. This is reverse proxy setup server { listen 443 ssl http2; listen [::]:...
0
votes
0answers
27 views

nginx allow only Let's Encrypt on Ports 80+443

I want to set up an nginx reverse proxy behind a NAT. It will proxy multiple internal servers to the outside world. ALL services will run on a non-standard port (i.e. not on 80 or 443). nginx will ...
0
votes
1answer
39 views

How to secure Web Server To Application Server To Database Server communication?

I have application with docker images of all. I have setup Isolated Servers for my application. Web Server => Application Server => Database Server Web Server is configured with Nginx with SSL ...
1
vote
2answers
61 views

Which ssl certificates go where on an reverse proxy? - nginx

Need clarification for upstream SSL on an nginx reverse proxy server I've been reading the nginx docs regarding reverse proxy and securing ssl connections to upstream servers but I'm still confused ...
0
votes
0answers
17 views

nginx send a success 200 status after specified time to user

I know I will find the solution maybe with google but i have no clue what to search: target: I will send the User a File with a limited speed, no problem with the “limit_rate 1k;” option. After 60 ...
1
vote
1answer
44 views

How can I redirect back from https to http URLs after I removed a SSL certificate of lets encrypt in apache2 & nginx

I configured a certificate of let's encrypt using certbot-auto and the https worked but when I was trying to remove the certificate of my domain using certbot-auto delete... my wordpress and ...
0
votes
0answers
15 views

Client IP Adress gets lost (Nginx authentication via sub-request)

I am using http-auth-request-module on a nginx proxy to authenticate against another server. This other server's authentication mechanism evaluates the requesting client ip adress for authentication ...
0
votes
0answers
13 views

Nginx Try_Files Displays Only Index-page or 404 or Internal Error

Current Setup: Ubuntu 18.04.2 LTS PHP7.2-fpm using Sockets Nginx 1.14 (Ubuntu) MySQL 5.7.26 I have a script I'm trying to run on nginx. (works perfect on apache2 "rewite_mod") These files &...
2
votes
1answer
39 views

In nginx in which variable do I get the main domain

I want to forward all these subdomains in any scheme to the respective main domain in https. I don't want to have several server directives. server { server_name *.autocosts.info *...
0
votes
0answers
14 views

keepalive_disable parameters nginx for particular useragent/browsers

I am using keepalive_disable in nginx conf this requires for Syntax: keepalive_disable none | browser ...; Default: keepalive_disable msie6; Context: http, server, location Now i have two ...
0
votes
0answers
28 views

How can i send request to server-name to another server running on localhost:port

I am running apache2 on ubuntu where i have set up specific conf for different servers with different document roots. Now i want that instead of document root my request to server-name should go to ...
1
vote
1answer
7 views

what causes a large upstream_header_time in nginx?

Setup: Angular / Django / Nginx in ECS. Route 53 -> ELB -> Target group ECS With Nginx proxying /api | /admin calls to Django. We have a large lag or delay on some of our API requests with ...
2
votes
0answers
21 views

access_log gets duplicate entries unless the default directive in nginx.conf is commented out

I tried to configure a custom access_log format by adding this at the root of a conf in sites-enabled: log_format main '[$time_local] [$http_x_forwarded_for] [$status] [$body_bytes_sent] [$request] [$...
0
votes
0answers
17 views

Suggestions for authenticated proxy servers

I want to create a secure proxy server that is password protected. The first thing that comes to mind of course is the .htpasswd option. .htpasswd uses (documentation). "$apr1$" + the result of an ...
0
votes
0answers
15 views

Nginx: passing custom headers [on hold]

I'm trying to hardcode header inside nginx conf. This is how it works in curl curl -k -H "Authorization: apple custome_header" www.example.com So i dont want to pass header everytime. when ever i ...
0
votes
0answers
14 views

proxy_pass in Openresty

I want to check something in Lua and then proxy_pass in my target using Nginx code but does not work! location /nt { default_type 'text/plain'; content_by_lua_block{ local res = ngx....
2
votes
0answers
58 views

Failed downloading file. Nginx aio read /path/to/file failed (22: Invalid argument)

On our site we added the ability to download our video files. We use nginx on our servers. The weird issue is now that sometimes files are downloadable and sometimes not. The error we receive in the ...
-2
votes
1answer
30 views

How to protect a website with HTTPS using a digitalocean certificate?

I have deployed a website on a Digital Ocean droplet that listens on port 80, i.e. vanilla HTTP. I would like to protect the website using HTTPS, and it seemed like this would be a simple process ...
2
votes
0answers
36 views

Downloading fails at random for our users from S3, need help figuring out what's wrong

We have a file sharing service where users can upload, share and download their files. We are using AWS S3 to store our files. We're facing an issue where small files download fine, but when files ...
2
votes
0answers
14 views

“Primary script unknown” across subvol/dataset of Btrfs/ZFS

When I use nginx together with php-fpm and try to access a file which is not on the same subvol/dataset as / then it will result in: [error] 27411#27411: *1 FastCGI sent in stderr: "Primary script ...
0
votes
0answers
22 views

A web interface for ModSecurity

I'm looking for a web interface for ModSecurity3. These are what I found so far, but they look to be unmaintained for years: WAF-FLE: it is written in legacy PHP 5 and has not received updates since ...
4
votes
1answer
66 views

Replacing URI when using dynamic hosts in Nginx reverse proxy

FYI - I suspect this has a very obvious/simple answer (I'm new to nginx) I am using dynamic upstreams as part of my Nginx config. This means using variables in the proxy_pass directive, which ...
0
votes
0answers
42 views

Ngninx deny access by IP to Get request

I have an application that has an admin panel called domain.com/agent/ but there is no direct path in the server's root directory to block. I can see the log, there is a GET request to /agent/ I ...
2
votes
2answers
83 views

Nginx serves wrong domain site. It doesn't show default site if no configuration applies

I have 3 domains that are pointing to my server and the server runs confluence and jira application from atlissan. For whatever reason, my nginx is acting strange. I have the default nginx ...
1
vote
1answer
27 views

How to properly rewrite URL in nginx

I have one public IP and I need to maintain two web servers, therefore I've decided to make reverse proxy server. My proxy server uses NGNIX, and back end one uses Apache. 10.1.1.3 is Nginx's ip 10....
0
votes
0answers
50 views

Server is going down frequently (CPU 100% usage & load average over 3.5 mostly)

PHP Application hosted on Nginx server going down frequently. I checked using htop output and cpu usage is 100% and load average is more the 3. I tried restarting server and well as restarting PHP -...
0
votes
0answers
14 views

nginx configuration issues for a dev and a prod version of a site running on the same server

We are running a prod and a dev version of the same node code on our server. Currently, the Prod version is running as a reverse proxy server through nginx using a Wild card SSL Certificate running ...