Ubuntu 20.04
配置文件位于/etc/nginx/中
使用sites-enabled前需要移除其中的default.conf
示例:
server{
listen 80;
location /podmanapi/ {
proxy_pass http://unix:/run/xxx/xxx:/;
}
}
参考(前两个官方文档已经非常详细了)
http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_pass
http://nginx.org/en/docs/http/ngx_http_core_module.html#location
https://www.cnblogs.com/gbq-dog/p/10653054.html