{"action":"closed","issue":{"url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/392","repository_url":"https://api.github.com/repos/jwilder/nginx-proxy","labels_url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/392/labels{/name}","comments_url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/392/comments","events_url":"https://api.github.com/repos/jwilder/nginx-proxy/issues/392/events","html_url":"https://github.com/jwilder/nginx-proxy/issues/392","id":141427973,"number":392,"title":"Question: Possibility to use this with PHPFarm","user":{"login":"richardtape","id":116946,"avatar_url":"https://avatars.githubusercontent.com/u/116946?v=3","gravatar_id":"","url":"https://api.github.com/users/richardtape","html_url":"https://github.com/richardtape","followers_url":"https://api.github.com/users/richardtape/followers","following_url":"https://api.github.com/users/richardtape/following{/other_user}","gists_url":"https://api.github.com/users/richardtape/gists{/gist_id}","starred_url":"https://api.github.com/users/richardtape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardtape/subscriptions","organizations_url":"https://api.github.com/users/richardtape/orgs","repos_url":"https://api.github.com/users/richardtape/repos","events_url":"https://api.github.com/users/richardtape/events{/privacy}","received_events_url":"https://api.github.com/users/richardtape/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-03-16T23:07:41Z","updated_at":"2016-03-30T15:46:42Z","closed_at":"2016-03-30T15:46:42Z","body":"Hi,\r\n\r\nThanks for putting this together and maintaining it. It's a really, really useful resource.\r\n\r\nI was investigating whether it was possible to use this as a way to allow me to put nginx in front of https://github.com/splitbrain/docker-phpfarm\r\n\r\nPHPFarm exposes several ports for the different versions of PHP that it supports. i.e. hitting [docker-ip]:5053 uses PHP 5.3, [docker-ip]:5054 uses PHP 5.4 etc.\r\n\r\nI've tried the following:\r\n\r\n`docker run -d -p 80:80 -v /var/run/docker.sock:/tmp/docker.sock:ro jwilder/nginx-proxydocker.sock:/tmp/docker.sock:ro jwilder/nginx-proxy`\r\n\r\n`docker run --rm -t -i -e VIRTUAL_HOST=test53.somedomain.dev -e APACHE_UID=$UID -v $PWD:/var/www:rw -p 8053:8053 splitbrain/phpfarm:wheezy`\r\n\r\nand have `192.168.99.100 test53.somedomain.dev` in my `/etc/hosts` file\r\n\r\nHowever, going to http://test53.somedomain.dev/index.html in the browser gives me a 502 Bad Gateway error from nginx\r\n\r\nGoing directly to `http://192.168.99.100:8053/` however, shows me the contents of an index.html file appropriately. and `http://192.168.99.100:8053/index.php` the appropriate PHP file (which I have outputting the PHP version and it's showing `PHP Version: 5.3.29` )\r\n\r\nSo, I've clearly misunderstood something somewhere. Any possibility of giving me a hint?\r\n\r\nMy goal is to have something like test52.somedomain.dev, test53.somedomain.dev, test54.somedomain.dev etc. which are using the appropriate PHP version."}}