reverse-proxy

reverse proxy and Load balancer

混江龙づ霸主 提交于 2020-08-10 19:30:06
问题 Here is the Apache Reverse proxy and load balancer, the website/reports url is not coming up <IfModule mod_proxy.c> ProxyPreserveHost On <Proxy balancer://app0102> BalancerMember https://serverapp01.com BalancerMember https://serverapp02.com </Proxy> ProxyPass / "balancer://app0102/" ProxyPassReverse "/" "balancer://app0102/" </IfModule> if I point to single server, the website/reports url work <VirtualHost *:443> <IfModule mod_proxy.c> ProxyPass / https://serverapp01.com / retry=1 acquire

Nginx reverse proxy on unix socket for uvicorn not working

随声附和 提交于 2020-08-08 06:14:39
问题 Files : # main.py: from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"Hello": "World"} - # nginx.conf: events { worker_connections 128; } http{ server { listen 0.0.0.0:8080; location / { include uwsgi_params; uwsgi_pass unix:/tmp/uvi.sock; } } } - # Dockerfile FROM python:3 COPY main.py . RUN apt-get -y update && apt-get install -y htop tmux vim nginx RUN pip install fastapi uvicorn COPY nginx.conf /etc/nginx/ Setup : docker build -t nginx-uvicorn:latest .

Nginx reverse proxy on unix socket for uvicorn not working

≯℡__Kan透↙ 提交于 2020-08-08 06:13:36
问题 Files : # main.py: from fastapi import FastAPI app = FastAPI() @app.get("/") def read_root(): return {"Hello": "World"} - # nginx.conf: events { worker_connections 128; } http{ server { listen 0.0.0.0:8080; location / { include uwsgi_params; uwsgi_pass unix:/tmp/uvi.sock; } } } - # Dockerfile FROM python:3 COPY main.py . RUN apt-get -y update && apt-get install -y htop tmux vim nginx RUN pip install fastapi uvicorn COPY nginx.conf /etc/nginx/ Setup : docker build -t nginx-uvicorn:latest .