skip to Main Content

In nginx why I'm unable to use a web address as a proxy pass which is already used as a proxy pass

I've following server blocks in my nginx configuration: server { listen 80; #default_server; listen [::]:80; #default_server; client_max_body_size 20M; client_header_timeout 600; client_body_timeout 600; keepalive_timeout 600; server_name example1-proxy.in; location / { proxy_pass http://example1.in; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header Forwarded $proxy_add_forwarded;…

VIEW QUESTION

Docker Nginx with React and Laravel

So I want to have a single Nginx web server serving both frontend and backend with Docker. Here is my docker-compose: version: "3.8" services: db: #mysqldb image: mysql:5.7 container_name: ${DB_SERVICE_NAME} restart: unless-stopped environment: MYSQL_DATABASE: ${DB_DATABASE} MYSQL_ROOT_PASSWORD: ${DB_PASSWORD} MYSQL_PASSWORD: ${DB_PASSWORD} MYSQL_USER:…

VIEW QUESTION
Back To Top
Search