Questions tagged [nginx-config]
2020 questions
0
votes
1 answer
Nginx reverse proxy to an https address behind corporate proxy
I am trying to setup an Nginx reverse proxy to an AWS API Gateway address like https://12345.execute-api.eu-central-1.amazonaws.com/v2 behind a corporate proxy.
I tried the following setup to www.example.com and it works. But as soon as I add https…

Zabih Khaliqi
- 85
- 1
- 8
0
votes
0 answers
NGINX try_files does not accept file name. It forcefully tries to open $uri no matter what I do
I am trying to optimize a server. Long story short, the server gets queries like following:
"https://my_domain_here.com/media/test.jpg?width=150&crop=center,center" when it gets this request ti should return file…

np3228
- 85
- 6
0
votes
0 answers
How to put URL/$directory into rewrite url parameter in NGINX?
What I need is to pass as a parameter what comes after the slash.
https://example.com/berlin
to
https://example.com/index.php?c=berlin
So far for testing I had done it like this:
location / berlin {
return 301…
0
votes
1 answer
Nginx seems to double size of URI (path+query) when sending to uWsgi
Using Nginx over uWsgi with the default protocol (presumably uwsgi):
When you send a request with a long path thru Nginx, say 4k characters,
uWsgi then reports a buffer of size about 8k.
Same for a short path with a long query parameter.
When you…

Mark Gerolimatos
- 2,424
- 1
- 23
- 33
0
votes
1 answer
Setting up HTTPS on NGINX Server
I'm trying to setup NGINX for HTTPS.
I have a node app and NGINX acting as a reverse proxy.
However once setup and trying to access my website I get "too many redirects" error,
I think something is wrong with my NGINX configuration, any help?

Omar Salama
- 41
- 2
0
votes
0 answers
Returning 404 error even though location /name/ {} field defined
I have the following nginx.conf
http {
root /home/aissy/Documents/web;
access_log /home/aissy/Documents/web/access.log;
error_log /home/aissy/Documents/web/error.log;
autoindex on;
server {
listen localhost:88;
location /…

user1094822
- 25
- 5
0
votes
0 answers
NGINX proxy a curl POST request from app to another server
I'm trying to send a POST using curl to a NGINX proxy server which is then going to redirect it to the correct server.
Im currently getting several errors:
curl: (3) URL using bad/illegal format or missing URL
curl: (6) Could not resolve host:…

Oliver Wood
- 1
- 1
0
votes
0 answers
Nginx Reverse Proxy - proxy_pass using "FQDNs"
We have been trying for days (we tested hundreds of setups) to make a Nginx Reverse Proxy successfully reverse proxy a web application that needs FQDNs (this is mandatory for this web application to work).
Using the configuration below for the Nginx…

Eduardo Lucio
- 1,771
- 2
- 25
- 43
0
votes
0 answers
How do I manage Wordpress application to get 5000 users logged in at a same time?
I have created a wordpress application, last year and it got crashed. when 1000 users are trying to signin at the same time.. can someone please suggest how do I manage users and signing activity. I am sure approx 4000 to 5000 users will go for…

Nitin Singh Chouhan
- 11
- 2
0
votes
0 answers
nginx error adding proxy cache to multiple servers or locations
http global config
proxy_cache_path /tmp/nginx/temp/cache_one levels=1:2 keys_zone=cache_one:100m inactive=7d max_size=30g;
proxy_cache_key $scheme://$host$request_uri;
server config
server {
listen 7777;
include…

cong yu
- 11
- 1
0
votes
1 answer
Regex don't work as expected in nginx map
I'm trying to achieve some URL rewrite rules in nginx. I use similar regex to capture the interesting groups, it works perfectly in regex101, and in IIS rewrite rules' regex, but not working in nginx map. I don't know exactly if there is a specific…

Mustafa Magdy
- 1,230
- 5
- 28
- 44
0
votes
1 answer
How to improve nginx performance when I need to send multiple API requests in docker?
I am learning using nginx to connect server and app in the docker compose. In the app, I am trying to post data to the database and it sends 5 requests a time. The nginx seems not happy with it, and then I got 502 error: POST…

achai
- 199
- 1
- 7
0
votes
1 answer
NGINX is sending for .json file text/html Conent type
I have problem with my nginx server in version nginx:1.19-alpine running on Docker.
Static files with .json extension are served with mime type text/html.
Request:
curl 'example.json' -H 'Accept: application/json' -H 'Accept-Language:…

Marcel GJS
- 234
- 1
- 10
0
votes
1 answer
nginx ssl + react + node, response is timeout
I have made a react app, it is working fine for http protocol. now I want to enable https for this site. My node is listening on port 5000 and react working on port 3000. but I can't send commands to port 5000 where node is listening and I get time…

vahid mokhtarzade
- 15
- 1
- 7
0
votes
1 answer
Add long sleep to php page
I have a PHP page which needs to load slowly.
So I wrote something like:

Riccardo79
- 954
- 4
- 17
- 35