0
우분투 컴퓨터에 최신 Nextcloud 컨테이너를 설치했습니다.아파치에서 php-fpm 컨테이너에 액세스 할 수 없습니다.
sudo docker run --name nextcloud --link mysql:mysql -p 9000:9000 -v /data/nextcloud:/var/www/html -d nextcloud:latest
COMAND sudo docker logs nextcloud
쇼 :
그것은 다음과 같은 명령을 성공적으로 시작 내가 호스트 시스템의 아파치 설정에 mod_proxy를하고 mod_proxy_fcgi 활성화
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.3. Set the 'ServerName' directive globally to suppress this message
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.3. Set the 'ServerName' directive globally to suppress this message
[Mon Mar 13 09:41:24.786941 2017] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.10 (Debian) PHP/5.6.30 configured -- resuming normal operations
[Mon Mar 13 09:41:24.787013 2017] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND'
, 그래서 이것은 또 다른 내에서 실행되지 않는다 고정 컨테이너.
ProxyPreserveHost On
ProxyPass "/cld" "fcgi://127.0.0.1:9000"
ProxyPassReverse "/cld" "fcgi://127.0.0.1:9000"
URL을 열면 오류 503 서비스를 사용할 수 없습니다.
아파치 오류 로그가 표시되고 :
[Mon Mar 13 11:08:35.102072 2017] [proxy_fcgi:error] [pid 11783:tid 140492205455104] [client 2001:a61:186:d601:f898:e50c:c181:db75:52659] AH01067: Failed to read FastCGI header
[Mon Mar 13 11:08:35.102119 2017] [proxy_fcgi:error] [pid 11783:tid 140492205455104] (104)Connection reset by peer: [client 2001:a61:186:d601:f898:e50c:c181:db75:52659] AH01075: Error dispatching request to :
[Mon Mar 13 11:08:36.866618 2017] [proxy_fcgi:error] [pid 11783:tid 140492197062400] (104)Connection reset by peer: [client 2001:a61:186:d601:f898:e50c:c181:db75:52660] AH01075: Error dispatching request to : (sending empty stdin)
[Mon Mar 13 11:08:38.263875 2017] [proxy_fcgi:error] [pid 11783:tid 140492180276992] [client 2001:a61:186:d601:f898:e50c:c181:db75:52664] AH01067: Failed to read FastCGI header
[Mon Mar 13 11:08:38.263914 2017] [proxy_fcgi:error] [pid 11783:tid 140492180276992] (104)Connection reset by peer: [client 2001:a61:186:d601:f898:e50c:c181:db75:52664] AH01075: Error dispatching request to :
무엇 내가 놓친?
나는 fpm 이미지를 실행하고 위에서 프록시 규칙을 사용했다. 그 결과 파일을 찾을 수 없습니다. sudo는 고정 표시기 로그 는 [16 월이-2017 13시 55분 27초]주의 사항 NC2 : FPM가 실행이 1 PID [16 월 - 2017 13시 55분 27초]주의 사항 : 연결 172.17.0.1을 처리 할 준비가 - 16/Mar/2017 : 13 : 57 : 52 +0000 "GET/cloud"404 – Nabor