Category : nginx-reverse-proxy

I have prepared a docker environment to run certain PHP based websites using nginx reverse proxy. Things mostly work except for one glitch. The URLs return the output of index.php just fine without mentioning index.php http://web.local/web, however, when I do it like http://web.local/web/index.php or any .php file for that matter. web container gives the following ..

Read more

I have created a simple HTML application and I was trying to host it using nginx server. index.html <!DOCTYPE html> <html lang="en"> <head> <title>Simple Test Web App!</title> </head> <body > Test Web App!!! </body> </html> Dockerfile FROM nginx:latest # Copy files and directories from the application COPY index.html /usr/share/nginx/html # Tell Docker we are going ..

Read more

I using 2 Nginx and Nginx-PHP containers in my server. at first, request from domains comes to the main Nginx (below configuration) main Nginx: server { server_name domain.com; location ~/project1(.*)$ { proxy_set_header X-Forwarded-Proto https; proxy_pass http://container1/$1; proxy_set_header Host domain.com; } listen 443 ssl; ssl_certificate /etc/letsencrypt/live/domain.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/domain.com/privkey.pem; } and then, main Nginx proxy_pass request to ..

Read more

I am having problem when setting up the following service ( https://github.com/wmnnd/nginx-certbot) which is an nginx with certbot – is not finding my wordpress instance running on a specifik URL (i.e example.org) / not redirecting to the URL. My settings is the following (first the nginx-certbot) running the init-letsencrypt.sh after editing it. home/user/repository/proxy-docker/docker-compose.yml version: ‘3.7’ ..

Read more

I used different docker-compose.yml to up two sites nginx1 mapping 8080:80 nginx2 mapping 8081:80 nginx-proxy forward 8080 to 80 and 8081 to 81 The results localhost:8080 and localhost:8081 are fine, but localhost:80 and localhost:81 are not works, I don`t know why, and tried add containers to a common networks, not works too I expect visit ..

Read more

I’m still learning how to work with docker so please bear with me. So I’m trying to set up a Jenkin HTTPS web portal via a docker, which I’m using the following website as a guide to do so. (https://itnext.io/setting-up-https-for-jenkins-with-nginx-everything-in-docker-4a118dc29127). So following the guide, I tried running the following command below, which after some research ..

Read more

I have a docker environment with 3 containers: frontend (angular), backend (dotnet) and nginx. I’m trying to configure nginx with a proxy_pass to direct the /api location to my API from one of the containers. This is my nginx configuration: server { listen 80; server_name localhost; location / { proxy_pass http://sitr-app:80; proxy_http_version 1.1; proxy_set_header Upgrade ..

Read more