Tag: nginx

当我得到“ 1#1:> BIO_new_file失败SSL错误”时,如何让docker-compose工作

我以前成功地build立了一个Dockerregistry。 我正在尝试再次这样做。 我正在这些方向的第6步。 第一部分工作。 我正在使用Ubuntu 16.04。 我不认为这是我的问题,因为我已经在16.04工作了。 这是我的docker-compose.yml文件: nginx: image: "nginx:1.9" ports: – 5043:443 links: – registry:registry volumes: – ./nginx/:/etc/nginx/conf.d registry: image: registry:2 ports: – 127.0.0.1:5000:5000 environment: REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY: /data volumes: – ./data:/data 我运行这个命令: sudo docker-compose up 这是他得到的错误: nginx_1 | 2017/11/17 05:37:24 [emerg] 1#1:BIO_new_file(“/ etc / nginx / conf.d / domain.crt”)失败(SSL:错误:02001002:system library:fopen:No such file或目录:fopen('/ etc / […]

dockerized nginx代理不转发请求到dockerized容器

我试图收集一些信息,当nginx-reverseproxy没有将请求转发到docker容器(我们称之为app-core)时,可能的途径是什么。 我可以通过从nginx-reverseproxy容器执行curl请求来访问app-core。 nginx-proxy和app-core都在运行。 两者都在同一个networking上。 我不认为在/etc/nginx/conf.d/default.conf中有什么感兴趣的。 尽pipe如此,我已经在这里发布了一个片段 upstream \ app-core.com { # app-core for docker compose server app-core:80; } server { server_name \ app-core.com; listen 80 ; access_log /var/log/nginx/access.log vhost; return 301 https://$host$request_uri; } server { server_name \ app-core.com; proxy_connect_timeout 5m; proxy_send_timeout 5m; proxy_read_timeout 5m; send_timeout 5m; listen 443 ssl ; access_log /var/log/nginx/access.log vhost; ssl_protocols TLSv1 […]

Nginx代理服务器返回错误的IP地址

我有一个运行这个configuration的Nginx代理: server { listen 443 ssl; server_name jackett.example.com jackett.example.com; # SSL include /etc/nginx/confs/nginx-ssl.conf; # Authentication location /auth-admin { internal; proxy_pass https://www.example.com/auth.php?admin&whitelist=82.18.122.90; proxy_pass_request_body off; proxy_set_header Content-Length ""; proxy_set_header X-Original-URI $request_uri; } # Root block location / { auth_request /auth-admin; proxy_pass http://jackett:9117/; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; # HTTP 1.1 […]

如何从服务器的公共IP访问docker容器

我正在尝试使用docker在服务器上部署我的网站。 我有一个液滴与centOS和docker安装在它上面。 当我尝试运行一个容器( https://hub.docker.com/r/richarvey/nginx-php-fpm/ )时,我期望通过我的浏览器使用公共IP(ipv4)访问我的网站,但我认为这不够。 有什么问题?

如何在Alpine linux上添加用于nginx的Lua模块?

我想在启用Lua模块的情况下为nginx提供一个精简的Docker镜像。 我怎样才能创build这个基于高山linux?

Magento商店使用Nginx和Docker的子域名

我会有一个多层次的Magento 2,我想知道如何创build每个商店的子域名。 Magento将被安装在一个带有Nginx,Mysql和PHP5.6的Docker中。 谢谢

Nginx和Docker:nginx无法路由到正确的容器

我最近尝试设置nginx将传入的stream量路由到不同的docker集装箱。 除了site1之外,其他三个站点都连接到一个容器,有时该容器会在重新启动时更改。 在启动了所有的docker容器之后,没有任何docker logs用于nginx的。 据我可以告诉所有的后续容器正常运行(他们正在运行的Node.js) 我的docker-compose.yml: version: '2' services: resume: build: context: ../WebServer/ dockerfile: Dockerfile volumes: – ../WebServer/app/publicFiles:/app/publicFiles globalmedical: build: context: ../globalMedical/ dockerfile: Dockerfile volumes: – ../globalMedical/app/publicFiles:/app/publicFiles webjcl: environment: – NODE_DEBUG=fs build: context: ../webjcl/ dockerfile: Dockerfile volumes: – ../webjcl:/app mongo: image: 'mongo:3' depends_on: – webjcl hack: build: context: ../Hack/ dockerfile: Dockerfile volumes: – ../Hack/app/publicFiles:/app/publicFiles reverseproxy: […]

nginx&docker中的错误404页面

我在docker容纳了我的项目,它有静态页面404和500等。 如何在docker容器中安装的nginxconfiguration页面404和50х?

无法为弹簧引导configurationdocker和nginx

我正尝试使用nginx反向代理在Docker容器中运行testing的spring启动应用程序。 Spring引导应用程序非常简单,只是为了testing: @Controller public class IndexController { @GetMapping("/") public String index(){ return "index.html"; } } application.properties: server.port=8088 index.html: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Index</title> </head> <body> <h1>Hello from Spring-boot and Docker! =)</h1> </body> </html> Docker文件的春季启动: FROM ubuntu:xenial EXPOSE 8088 RUN apt-get update && apt-get install -y default-jre && apt-get install -y maven && […]

docker assinged一个ip我找不到ipconfig,但它存在

在Windows 7上,我安装了docker,它启动了一个无头虚拟机。 对于第一个testing,我build立了最大的nginx ,运行8080:80 ,但是之后我无法在Windows上浏览它。 localhost:8080尝试localhost:8080失败。 然后我执行了: docker inspect [MY-CONTEINER-ID] 我试图使用我在那里发现的ip为172 ,显然是另一个失败 此外,我在Windows上使用ipconfig ,我发现192.168.99.1 ,但它也失败了。 最终几小时后,我不小心浏览了192.168.99.100:8080 ,它的工作! 请让我知道,我怎么能find这个192.168.99.100分配在哪里,逻辑是什么,我可以透露哪些命令?