Hello,
I found a threat which is nearly what I wanna configure but I am struggling right at the beginning.
My setup is a nginx web server as reverse proxy. Behind it I am running nextcloud, pydio, cops, etc… all of these is running in docker contaienrs and I love this way to run it.
My wife wanted now to test a blog writing and I surrendered after millions of trials with reversing for wordpress.
Now I found caddy and read a lot about its eas to use.
This was the start for a trial on a VM with Ubuntu Server 16.04. I setup a portainer container on port 8010 and it is accessable and working.
I then setup with this command a caddy docker
docker run -d \
--name caddy \
-v /docker/config/caddy:/etc \
-v /docker/config/caddy/.caddy:/root/.caddy \
-p 80:80 \
abiosoft/caddy:php
I did not put port 443 in it because on my lab setup I just wanted to test everything without SSL.
My first idea was to do a Caddyfile with a simple reverse proxy to port 8010 with this lines:
localhost:80, 192.168.100.44:80
proxy / 192.168.100.44:8010
This worked for the first time. After that I added a cops container on 8030; Again accessible directly with 192.168.100.44:8030
localhost:80, 192.168.100.44:80
proxy / 192.168.100.44:8010proxy /ebooks 192.168.100.44:8030 { transparent }
on startup php-fpm7
I am receiving some error logs:
[11-Oct-2017 19:44:56] ERROR: failed to open configuration file ‘/etc/php7/php-fpm.conf’: No such file or directory (2)
[11-Oct-2017 19:44:56] ERROR: failed to load configuration file ‘/etc/php7/php-fpm.conf’
[11-Oct-2017 19:44:56] ERROR: FPM initialization failed
and if I try 192.168.100.44/ebooks I am receiving an error message 404 but it is a nginx message??
I appreciate every help! Thanks