nginx

Azure VM NGINX Plus + Web App leads to 404

对着背影说爱祢 提交于 2021-01-28 21:57:01
问题 I'm working on NGINX Plus setup as a reverse proxy for traffic management and routing on my Azure Cloud Solution. I'm just getting started and everything works independently, but when I try to use the proxy_pass to route web traffic to a .NET Web App that rests in the cloud, I get 404 errors. I've tried with an app I've had deployed for a while(a .NET MVC Web App) and also a node express app that is nothing more than the basic offering as a test: http://rpsexpressnodetest.azurewebsites.net/

How can I debug oauth2_proxy when connecting to Azure B2C?

早过忘川 提交于 2021-01-28 19:18:27
问题 I'm new to Kubernetes, and I've been learning about Ingress. I'm quite impressed by the idea of handling TLS certificates and authentication at the point of Ingress. I've added a simple static file server, and added cert-manager, so I basically have a HTTPS static website. I read that NGINX Ingress Controller can be used with oauth2 proxy to handle authentication at the ingress. The problem is that I can't get this working at all. I can confirm that my oauth2-proxy Deployment Service and

How to convert 10MB PDF to SVG quickly with appropriate size for web

╄→尐↘猪︶ㄣ 提交于 2021-01-28 19:08:39
问题 Good day, I have read all questions and answers about "PDF to SVG", "PDF to PNG, PNG to SVG" and had no success in accomplishing my task. I have a PDF that is about 10mb (blueprints from archiCAD) and after using pdf2svg to convert to SVG, the SVG is about 70mb. Conversion takes 14sec, but the web page load takes about 150sec because of the size of the SVG. My question is - how can i convert PDF in PHP to SVG with appropriate size for web without quality loss and without gzipping it? This

Rewrite rule for the root file in nginx?

拈花ヽ惹草 提交于 2021-01-28 15:54:09
问题 I just want to redirect / to a different file rather than index.php/.html. So on apache I can do this.. RewriteCond %{REQUEST_FILENAME} -f RewriteRule . /path/to/dir/index.html [L] Trying this in nginx just doesn't even get run, it seems: if (-f $request_filename){ set $rule_0 1$rule_0; } if ($rule_0 = "1"){ rewrite /. /path/to/dir/index.html last; } Also tried this: if ($request_filename ~ "/index.php"){ set $rule_3 1$rule_3; } if ($args ~ "^$"){ set $rule_3 2$rule_3; } if ($rule_3 = "21"){

Rewrite rule for the root file in nginx?

偶尔善良 提交于 2021-01-28 15:40:21
问题 I just want to redirect / to a different file rather than index.php/.html. So on apache I can do this.. RewriteCond %{REQUEST_FILENAME} -f RewriteRule . /path/to/dir/index.html [L] Trying this in nginx just doesn't even get run, it seems: if (-f $request_filename){ set $rule_0 1$rule_0; } if ($rule_0 = "1"){ rewrite /. /path/to/dir/index.html last; } Also tried this: if ($request_filename ~ "/index.php"){ set $rule_3 1$rule_3; } if ($args ~ "^$"){ set $rule_3 2$rule_3; } if ($rule_3 = "21"){

How to Configure Nginx to Execute PHP

情到浓时终转凉″ 提交于 2021-01-28 11:45:36
问题 This is config of nginx.conf http { include mime.types; default_type application/octet-stream; keepalive_timeout 65; server { listen 80; server_name localhost; location / { root /Users/*name*/PHPSITE/standard; index index.html index.htm; try_files $uri $uri/ /index.php; } error_page 500 502 503 504 /50x.html; location = /50x.html { root /Users/*name*/PHPSITE/standard; } location ~ \.php$ { include /usr/local/etc/nginx/fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_index /index.php;

How to Configure Nginx to Execute PHP

谁都会走 提交于 2021-01-28 11:39:00
问题 This is config of nginx.conf http { include mime.types; default_type application/octet-stream; keepalive_timeout 65; server { listen 80; server_name localhost; location / { root /Users/*name*/PHPSITE/standard; index index.html index.htm; try_files $uri $uri/ /index.php; } error_page 500 502 503 504 /50x.html; location = /50x.html { root /Users/*name*/PHPSITE/standard; } location ~ \.php$ { include /usr/local/etc/nginx/fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_index /index.php;

Nifi on docker behind nginx processor configure not opening

ぐ巨炮叔叔 提交于 2021-01-28 11:31:07
问题 Followed guide ( https://michalklempa.com/2019/04/nifi-registry-nginx-proxy-tls-basic-auth/ ) to set up nginx basic auth, however instead of proxy for nifi-registry I set it up for nifi. Auth is working and page is accessible but somehow processor configure window not opening. The issue is due to nginx since direct access to nifi through HTTP exposed ports works ,just not behind nginx proxy. below is the config I am using: server { listen 9988 ssl; root /usr/share/nginx/html; index index.html

Using only gunicorn, django, and whitenoise how do I serve media?

…衆ロ難τιáo~ 提交于 2021-01-28 11:11:51
问题 I have my website finally working properly, but media files aren't served when debug = False what should I do? I've went through hell trying to make it work with nginx following this tutorial but it kept breaking and not serving static among other things, so I went with pure gunicorn and whitenoise. I really am not an expert at deploying, only development. Please help. Security isn't a problem with media files because only the admin can upload them, not end-users. Specifically I need to know