Questions tagged [nginx-config]

2020 questions
0
votes
1 answer

Can I return 404 in nginx when the URL contains a file extension?

I'm new to nginx and need to modify an application's nginx configuration file to always return a 404 if the URL contains a file extension. My nginx.conf file is as follows: worker_processes 1; events { worker_connections 1024; } http { …
ASH
  • 573
  • 2
  • 7
  • 20
0
votes
0 answers

Nginx - have two servers running on one .conf file connected to the same port

I created a configuration file called nginxserver.conf to run two servers from the same server like so: server { listen 83; listen [::]:83; server_name u.myproject.com; location / { …
Tyler Mc
  • 228
  • 1
  • 7
0
votes
2 answers

how to use NGINX for proxy RTMP

Im using NGINX for http proxy like below http { server { server_name example.com; location / { proxy_pass http://localhost:3000/; } } } I would like to know anyway to use NGINX for RTMP something like rtmp { server { …
vy.pham
  • 571
  • 6
  • 20
0
votes
0 answers

Error while using Nginx lua module: libluajit-5.1.so.2: cannot open shared object file: No such file or directory

I am receiving below error with Nginx: 2020-12-24 10:41:46 INFO XMLTooling.SecurityHelper : loading certificate(s) from file (/etc/shibboleth/sp-encrypt-cert.pem) 2020-12-24 10:41:46 DEBUG Shibboleth.ServiceProvider : registered remoted message…
Geetika
  • 316
  • 9
  • 23
0
votes
0 answers

Nginx doesn't allow callback urls in parameters

I'm trying to connect Printful service to my Wordpress website and I getting 403 error. After some search I found out similar issue rised by Printful devs (https://github.com/woocommerce/woocommerce/issues/10678) and it seems like nginx settings on…
Vladk
  • 77
  • 6
0
votes
0 answers

nginx favicon versioning

My first nginx server is running the Anguar website with PNG images perfectly as www.abc1.com/first/favicon.ico?v=1, but my another nginx server running the www.abc2.com/first/favicon.ico?v=1 is giving the error of Page not found. Both servers are…
0
votes
0 answers

NGINX proxy pass - multiple entry pages from same server

I am using NGINX with proxy pass to act as reverse proxy. On the backend, we have only one server. http://localhost:5000/index.html http://localhost:5000/default.html I have following condition in nginx.conf location /one/ { …
SharpCoder
  • 18,279
  • 43
  • 153
  • 249
0
votes
2 answers

Convert root certificate ,server certificate and intermediate certificate to .cert and .key file

I have three certificate files rootcertificate.txt, intermediateCertificate.txt, and serverCertificate.txt. I want to install an SSL certificate on the Nginx server in the ubuntu platform and for this required two files yourdomain.cert and…
Hrishikesh
  • 299
  • 1
  • 14
0
votes
2 answers

NGINX Image not found

I'm trying to make custom 404 page. Here is my 404.html: Not Found
404
Page not found
Ican
  • 119
  • 2
  • 2
  • 10
0
votes
2 answers

http basic auth example with nginx ingress controller (nginxinc)

I can't get http basic auth working with nginxinc ingress controller docs: https://docs.nginx.com/nginx/admin-guide/security-controls/configuring-http-basic-authentication My usecase: I have a Ingress running at web.mydomain.com. I need to add basic…
mayankchutani
  • 273
  • 3
  • 14
0
votes
1 answer

Nginx:[error] 2147#2147: *1 connect() failed (111: Connection refused) while connecting to upstream,

i am having issue with my nginx configurations, i don't what did i do wrong but my server is giving 502 bad gateway i am adding the configurations server { listen 80; root /var/www/html; index index.php index.html index.htm…
Azee
  • 11
  • 3
0
votes
0 answers

Customising AWS Beanstalk Nginx 502 error page does not work

I am running a nodejs website on AWS beanstalk with Nginx as proxy server. Every time when I deploy a new version of the site, Nginx display a default 502 error page during the update, and then the site goes back to normal after the deployment…
Zhang Zhan
  • 815
  • 8
  • 27
0
votes
0 answers

Nginx Not apply add_header directives to WordPress JS, CSS, images resource files URL's header

In my Nginx setup, I used the following add header configurations. But when I check my site JS and CSS resources header, it's not added these add_header configurations to HTTP header. What's missing in my configuration? When I check home page and…
Chathu
  • 55
  • 8
0
votes
1 answer

Nginx return static file or proxied request depending on cookie value

I have two applications, one nodejs and another react app. I user is not logged in, I return the node app, if user is logged in, I want to return the react app index.html file. location / { if ($cookie_isLoggedIn = "true") { // how can I…
Valera
  • 2,665
  • 2
  • 16
  • 33
0
votes
1 answer

How to deliberately block 404 error in nginx?

I have a private website for personal use only. I have no interest in anyone else accessing my webserver and want nginx to return absolutely nothing on all invalid uri. How do I purposefully prevent 404 error (or any other errors) from being…
codechimp
  • 1,509
  • 1
  • 14
  • 21
1 2 3
99
100