Tag: lighttpd

在docker集装箱的贝加尔许可问题

我在我的覆盆子pi上使用我的贝加尔docker容器的权限有一些奇怪的现象: 当我启动容器时,一切都运行良好,但是如果稍后再检查,我会得到403 Forbidden或500 Internal服务器错误。 如果我检查日志,我看到以下内容: 2017-05-26 06:33:01: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: require(/baikal/vendor/autoload.php): failed to open stream: Permission denied in /baikal/html/ cal.php on line 46 2017-05-26 06:33:01: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Fatal error: require(): Failed opening required '/baikal/vendor/autoload.php' (include_path='.:/usr/shar e/php:/usr/share/pear') in /baikal/html/cal.php on line 46 2017-05-26 06:33:05: (mod_fastcgi.c.2702) FastCGI-stderr: PHP Warning: require(/baikal/vendor/autoload.php): failed to open stream: Permission […]

docker工人raspbian lighttpd容器不工作

我正在尝试创build一个php ligttpd docker容器,它提供了一个显示其主机的hello worldtypes的页面。 我成功地启动了我的树莓派这个页面,但是当我尝试运行我的容器版本容器返回错误退出255 我正在运行的命令是lighttpd -D -f /etc/lighttpd/lighttpd.conf Dockerfile FROM resin/rpi-raspbian # Update system and install nginx webserver and php RUN apt-get update && \ apt-get upgrade && \ apt-get -y install lighttpd && \ apt-get install -y php5-common php5-cgi php5 && \ lighty-enable-mod fastcgi-php # Add required files COPY www/* /var/www/html COPY run.sh […]

Lighttpd + docker域问题

有我的dockerfile和lighttpdconfiguration。 Dockerfile: FROM alpine:latest ADD . /var/www/mydomain.org/ (1) ADD lighttpd.conf /etc/lighttpd/lighttpd.conf ADD mydomain.org.conf /etc/lighttpd/mydomain.org.conf (2) 'install lighttpd…' EXPOSE 3000 VOLUME /var/www/mydomain.org/ (3) WORKDIR /var/www/mydomain.org/ (4) ENTRYPOINT ["lighttpd", "-D", "-f", "/etc/lighttpd/lighttpd.conf"] lighttpdconfiguration: include 'mydomain.org.conf' (5) server.document-root = "/var/www/mydomain.org/public/" (6) server.errorlog = "/dev/stdout" server.port = 3000 mimetype.assign = ( ".html" => "text/html", ".txt" => "text/plain", ".jpg" => […]

在Docker中运行Lightttpd:ulimits not honored

我正在尝试在Docker容器中运行lighttpd(1.4.35),以便为大容量静态网站(无PHP等)提供服务。 运行一分钟后,错误日志将填充: (server.c.1444)[note]套接字被禁用,达到连接限制 我已经在/etc/security/limits.conf (并重新启动)中提高了root的限制: root soft nofile 4096 root hard nofile 32768 在我docker-compose.yml (相当于命令行中的–ulimit ): ulimits: nofile: soft: 4096 hard: 32768 在我的lighttpd.conf : server.max-fds = 8192 server.max-connections = 4096 但是当我运行lsof -n | grep -c lighttpd lsof -n | grep -c lighttpd我得到不高于128.如果我进入容器并运行ulimit -n我得到4096,如预期的那样。 运行ulimit -a返回: core file size (blocks, -c) unlimited data seg size (kbytes, […]