Category : nginx

Olá, estou montando um projeto com laravel e utilizando docker, nginx e etc… Quando entro na rota ‘/’ o redirecionamento é feito de forma normal, porém quando tendo entrar em qualquer outro tipo de rota ‘/alunos’, por exemplo, o docker me retorna esse erro. Alguém tem ideia de como resolver? 2021/10/28 17:36:34 [error] 23#23: *8 ..

Read more

I’m trying to follow this, but I’m finding some issues. My folder structure is a follows: — project — config/nginx/conf.d — www — server — settings.py, wsgi.py, etc. — Dockerfile — manage.py — requirements.txt — docker-compose.yml — Dockerfile The most relevant files are as follows: Dockerfile FROM python:3 # Make the Python output not buffered; logs will show in real ..

Read more

I’d like to find out what is haunting my dockerized Django, Postgres, Gunicorn, Nginx project. `/etc/nginx/html/index.html" is not found` nginx | 2021/10/27 15:40:34 [error] 22#22: *2 "/etc/nginx/html/index.html" is not found (2: No such file or directory), client: 172.29.0.1, server: , request: "GET / HTTP/1.1", host: "0.0.0.0:8000" nginx | 172.29.0.1 – – [27/Oct/2021:15:40:34 +0000] "GET / ..

Read more

I have the following Dockerfile: FROM nginx:latest RUN apt-get update && apt-get -y install openssl && apt-get -y install vim RUN mkdir -p /etc/nginx/snippets RUN mkdir -p /etc/openssl RUN openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/openssl/nginx-selfsigned.key -out /etc/openssl/nginx-selfsigned.crt -subj "/C=US/ST=NY/L=NY/O=ACME/OU=CD/CN=AcmeWPDeveloper" I don’t get an errors but when I log into the container, ..

Read more

I currently have a deployed application. https://dostoevsky.rest/ It works well with Nginx and Docker. However, I want to get a JSON when I hit the endpoint https://dostoevsky.rest/api/rand with a subdomain. So, I want the subdomain api.dostoevsky.rest to redirect https://dostoevsky.rest/api/rand. I thought I could configure Nginx as a reverse proxy, so I did the following: server ..

Read more

Please assist I’m trying to run both react.js and nest.js on http://localhost:3000 with docker-compose and Nginx, however my react.js app isn’t binding correctly. When I visit the link, I only see the nginx welcome page. This is my docker-compose.yaml version: "3.6" services: database: image: postgres:13.1-alpine env_file: – ./database/.env volumes: – "db-data:/var/lib/postgresql/data" networks: – challenge ports: ..

Read more

I try to start a project where I need to configure Docker to run Perl CGI files with nginx. Now I have this docker-compose.yml file: version: "3" services: httpd: image: ‘nginx:stable-alpine-perl’ ports: – ’80:80′ volumes: – ./:/var/www/html – ./.docker-config/nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro depends_on: # – perl – mysql command: [nginx-debug, ‘-g’, ‘daemon off;’] mysql: image: mysql:5.7 env_file: – ..

Read more