Questions tagged [nginx-config]

2020 questions
0
votes
0 answers

Docker Jwilder nginx-proxy custom nginx configuration, proxy-wide basis by mounting in custom configuration volume

I'm testing Jwilder nginx-proxy custom nginx configuration using this command: version: "3.8" services: reverse-proxy: image: "jwilder/nginx-proxy:latest" container_name: "reverse-proxy" volumes: -…
0
votes
0 answers

Static file is not called in nginx configuration

server { listen 80 default_server; listen [::]:80 default_server; server_name _; root /var/www/vue/dist; add_header X-Content-Type-Options "nosniff"; add_header X-XSS-Protection "1; mode=block"; …
0
votes
2 answers

How to serve Redis key with Nginx?

I have all my JSON files located in Redis cache. I want to get it served through Nginx. # redis-cli -h redis-master redis-master:6379> get "zips/80202.json" "{\"zipCode\":\"80202\",\"City\":\"DENVER\",\"StateCode\":\"CO\"}" I would…
Kannaiyan
  • 12,554
  • 3
  • 44
  • 83
0
votes
0 answers

Nginx proxy pass without rewrite url

location /checks/ { auth_request /auth; proxy_pass http://localhost:3000/meetings; } location = /auth { internal; set $query ''; if ($request_uri ~*…
0
votes
1 answer

App not running up on removing unsafe-eval for restricted CSP

Description My Application has restricted CSP which does not allow unsafe-eval for scripts. On adding a Content-Security-Policy header without unsafe-eval my application fails to load up. Minimal Reproduction I am passing this restrictive CSP header…
0
votes
1 answer

React project giving error after refresh in nginx

I have set up of wordpress (/) and react build folder(/map) as setup in nginx. the conf file looks like this upstream index_php_upstream { server 127.0.0.1:8090; } upstream direct_php_upstream { server 127.0.0.1:8091; } upstream react_point…
krishna lodha
  • 381
  • 3
  • 9
0
votes
0 answers

nginx named regular expression

I'd like to catch a part of the server_name to route an old domain to a new one like: server { server_name "~^(?)\.v1.+$"; location / { proxy_pass https://$domain.v2.com/; proxy_set_header Host …
0
votes
1 answer

How to forward the URL's all parameters through a proxy_pass with nginx?

How to forward the URL's all parameters through a proxy_pass with nginx? Nginx config: location /proxy/ { if ($request_method = HEAD) { return 200; } if ( $arg_address != "" ) { proxy_pass $arg_address; return 301…
S.Fadeev
  • 26
  • 5
0
votes
2 answers

Dockerized Nginx reverse proxy and Flask app, how to config?

I'm having trouble deploying a simple Flask app behind a Nginx reverse proxy. The app is the one found at https://docs.docker.com/compose/gettingstarted/ I'm trying to make the app show up at subdomain.example.com/flask but with the current…
0
votes
0 answers

Return all Requests to Index in Nginx?

For nginx, how can I return all Requests (of a dir) to the index? ex: user requests: /link/to/garbage/w/w/w/w/whatever nginx moves request to /link/index.php if possible, return as a query? like index.php?search={request} the server block in…
QQQ
  • 15
  • 1
  • 6
0
votes
0 answers

Nginx Disable Overwriting host to http_host

Nginx by default overwrites the $host property to $http_host if the http host header is present. Is there a way to disable this behavior? I want to prevent host-header injection by disabling this behavior.
amitng
  • 31
  • 3
0
votes
1 answer

Nginx - Why does nginx use so much cpu and memory? How to fix?

I am having problem with nginx consuming a lot of ram and cpu space. Even though I used the command sudo kill -9 1254214 to kill it, but it turned back on automatically after a while. If anybody face the problem and know how to fix it.Hope you'll…
Nguyen Hung
  • 127
  • 2
  • 10
0
votes
1 answer

Nginx regular expression in location not working

The following RE matches "http://my.domain/video.mp4" successfully but cannot match "http://my.domain/abc/video.mp4". location ~ "^.+(mp4|mkv|m4a)$" { root /home/user/Videos; } The log of Nginx reads [05/May/2021:12:29:25 +0800]…
Youran
  • 121
  • 5
0
votes
0 answers

Error when exposing Kubernetes service through NGINX INGRESS and file type: LoadBalancer

I have a Vuejs application built with Docker in 2 stages with Nginx: # estágio de compilação FROM node:10-alpine as build-stage WORKDIR /app ARG VUE_APP_BASE_URL="minha-base-url" ENV VUE_APP_BASE_URL=${VUE_APP_BASE_URL} COPY package*.json…
0
votes
0 answers

Wordpress and Laravel working together on NGINX

I'm trying to set up nginx vhost so I can use wordpress and laravel on the same domain. I put wordpress in the root folder And in a subfolder /laravel/ installed laravel Is it possible to make that if for example laravel route /laravel-page in URL,…
Fox1q
  • 1
  • 1