Category "nginx-config"

How do I redirect an address to another docker container using the nginx?

Im trying to redirect to docker containers using nginx but when accessing my server from an 'external pc'(host and other vagrant machines) the address doesn't r

certbot modifies the default nginx config

I am following a mini-tutorial to install letsencrypt certificates. OS is ubuntu 22.04. I had already installed nginx, and my own example.com config file to /et

best method to require passwords for some pages in a web site

I have a site with most material publicly available but about 10% should be password protected. The site is published using NGINX on a Debian system. What is th

Remove args if request_uri begins with specific strings/regex (with some exceptions) - Nginx

I want to redirect (301) several locations if they have query params at same locations without query params, but with some exceptions. For example, I want these

how to resolve nginx 502 bad-gateway error

I've containerized the next.js web application and hosted in aws ec-2. using nginx as proxy server this is the only working page / not working for any other p

When run node js application getting error whitelist ip in mongo cluster

I have implemented node js application and used MongoDB as database using nginx to run the project Everything working fine in local but when code is published i

NginX: catch all file outside of root dir, with exceptions

I'm building a site running NginX / PHP and want all access to be processed by /private/routes.php. But I also want to add some exceptions to this for css/js-fi

Use Nginx as reverse proxy, mount server at subfolder and add all links with the subfolder

I am running a Webserver with Python on localhost:5000. I would like to use Nginx as a reverse proxy to serve that website on localhost:80/subdirectory. That is

Nginx ssl_session_cache difference between shared:SSL and shared:MozSSL?

When setting ssl_session_cache in Nginx I often see examples set it as one of the two options: ssl_session_cache shared:SSL:10m; or ssl_session_cache shared:Moz

NGINX config for site down

I'm trying to get nginx to forward to my S3 bucket when my web app k8 pod is down. So I was hoping the below config would, in the case of 50x error or no respon

How can I make this nested location configuration use the correct path to call a php program?

I have setup nginx to allow users to have a user website (https://example.org/username maps to /home/username/www). I want to allow my users to use php. Php is

How can I leverage nginx to enforce a delay/rate-limit between outbound requests?

I am working with an external API that expects me to self-limit requests to no more than one request every 20 milliseconds (500 req/s total). I can easily do t

502 Bad Gateway for Proxy Pass to HTTPS API server sitting behind Cloudflare Proxy

My current configuration is as shown below. I have frontend delivered from EC2 instance on VM1. The HTTPS API server is on VM2 proxied by Cloudfare. If I call t

Not able to see URL without trailing slash in NGINX

I know that this is a common issue in NGINX and there are many threads about that. Issue: When accessing the URL http://localhost/var without trailing slash is

"Error: Invalid WebSocket frame: RSV1 must be clear" while using Socket.IO

What might be the problem for which, I'm getting this error "Error: Invalid WebSocket frame: RSV1 must be clear"? I'm using the socket.io package to connect to

Run multiple django project with nginx and gunicorn

I am using Ubuntu 18 servers and using nginx with gunicorn I follow Digitalocean tutorial for server setup. I successfully did for one project but now I need to

NGINX + Let's encrypt: Could not automatically find a matching server block

I'm publishing a website made with Python Pyramid on an Ubuntu 18.04 server. The website is running properly on HTTP and now I'm trying to make it run on HTTPS

Do I need to create my own nginx.conf file to run this docker-composer.yml file succesfully?

I am trying to get a nextcloud + mariadb + nginx docker-compose up and running locally, but I am stuck when it comes to the nginx.conf file. I am following this

Nginx reverse proxy issue long request

I'm stuck on a problem for a long time now with two nginxs server which the first is acting as a reverse proxy and the second as the backend server. Here is my