Questions tagged [nginx-config]

2020 questions
0
votes
0 answers

Troubleshooting nginx 302 redirection

I have a server with nginx and wordpress docker containers. Server domain: my-blog.servername.com. Wordpress should be accessible in the subdirectory as my-blog.servername.com/blog. I have another server with nginx set as servername.com and the…
0
votes
0 answers

nginx proxy pass ip from url

I have multiple web servers with IP address say 172.18.1.1 to 172.18.1.20, hosting different website on 443(https) and A nginx server which I need to use for proxying above servers. Example : My nginx server IP is https://10.220.5.39:9200 by giving…
bpbhat77
  • 529
  • 1
  • 6
  • 19
0
votes
1 answer

Nginx dynamic ssl does not work when the domain has www in it

The below code works perfectly for example.com but fails for www.example.com because $ssl_server_name becomes www.example.com and it tries to search a certificate with that name. The correct certificate location is /home/certs/example.com . Is there…
shashank
  • 326
  • 4
  • 6
  • 19
0
votes
0 answers

nginx: behavior of Expect: 100-continue with HTTP redirect

I've been facing some issues with nginx and PUT redirects: Let's say I have an HTTP service sitting behind an nginx server (assume HTTP 1.1) The client does a PUT /my/api with Expect: 100-continue. My service is not sending a 100-continue, but sends…
kiv
  • 1,595
  • 1
  • 9
  • 11
0
votes
1 answer

How to Correct 'nginx: [emerg] "stream" directive is not allowed here'

The Question Why does the following Nginx configuration return nginx: [emerg] "stream" directive is not allowed here in /etc/nginx/sites-enabled/default:1? Nginx Configuration... stream { map $ssl_preread_server_name $upstream { example.com…
0
votes
0 answers

Unable to modify Nginx.conf

I install Nginx through Homebrew using the below command brew install nginx It got successfully installed and I even tried running it on the default port 8080 using the below command nginx and that too worked. Now when I ran the below command to…
Amaarockz
  • 4,348
  • 2
  • 9
  • 27
0
votes
0 answers

LetsEncrypt SSL for my React and NodeJS app not working

I have followed some tutorials that teaches to implement ssl but most of them are not working for some reason, http works fine tho, don't know what I'm missing This is my default config, It looks like I have something wrong on my default config…
kgcusi
  • 215
  • 7
  • 18
0
votes
1 answer

Problem configuring nginx to run wordpress from subdirectory but without subdirectory name in url

I'm pretty new to nginx. I have two types of code one is simple php running through, index2.php and I have one directory named wordpress inside it has a whole wordpress website. What I'm trying to achieve is to get them both running on the main…
Steve Moretz
  • 2,758
  • 1
  • 17
  • 31
0
votes
1 answer

How to set nginx.conf permanently in kuberenetes ingress?

Our nginx controller does not support the SSL from windows 7 systems. We updated the cipher suites in the nginx.conf file in Kubernetes Nginx pods, and it started to work. Now the issue is whenever the service restarts or the pod restarts the…
0
votes
0 answers

Nginx: how to get urls with /#/something

I'm looking to add auth_basic into a specific location : domain.com/#/register I've tried : location "/#/register" { ... } Is there a way to do it ?
CookieThief
  • 158
  • 2
  • 10
0
votes
0 answers

nginx set expired header on files with query string

My files look like this: /js/jquery.js?ad886e4 location ~* \.(jpg|jpeg|png|gif|ico|css|js|svg|mp3) { expires 365d; } But the expired headers are not set, how can i set the expired headers to files with a query string.
dom
  • 1
  • 1
0
votes
1 answer

unable to bootstrap antd pro project on digitalocean

I was trying to deply an ant design pro project on digital ocean droptlet using nginx . but it shows javascript heap out of memory since i am very new at deploying project on sever i have totally stuck here and unable to find any idea to solve this…
Tanjin Alam
  • 1,728
  • 13
  • 15
0
votes
0 answers

ob for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details

Hello i am settting my django app and i got the following error Job for nginx.service failed because the control process exited with error code. See "systemctl status nginx.service" and "journalctl -xe" for details. when I run this command…
HACKYTOSH
  • 1
  • 1
0
votes
1 answer

Unable to run an angular app on kubernetes

I have developed an angular app which is running fine in local. Then I have created a docker image which also runs fine in the docker env. Now I am trying to deploy the image as a service in Kubernetes cluster. It is showing the pod as running…
Som
  • 1,522
  • 1
  • 15
  • 48
0
votes
0 answers

Web site cannot handle more than 50 concurrent visitors, what is wrong?

My web site will slow down after an e-mailing, when more than 50 visitors arrive at the same time. Then it gets very slow and sometimes gives a 502 Bad Gateway. I tried to change some settings on PHP and NGINX - this didn't solve it. To be able to…
C.A. Vuyk
  • 1,055
  • 17
  • 36