I was wondering is it possible to create a php proxy to a server that listens onlu locally so that the php gateway is public and it directs everything to the server listening on localhost.
This server would be mercurial's hg serve that listens only on 127.0.0.1 and php will do the authentication.
Do You think it's possible to do? Anybody has an idea how to make a general proxy in php so that not only http get works, but also hg push?
I know there are ways to host mercurial repo with auth, but it's on a plug computer and I don't have a lot of space for more apps etc.