That's not the answer to my question.
I wanted to know why the hell the port is hard-coded. It looks like code from someone who was still learning Perl.
The installation of a reverse proxy and all the other fiddling would be unnecessary if the port wold be configurable.
Or is port 8006 a dogma...
I have a situation where I need to change the port of the PMG web interface. But there is no configuration option for this.
Finally I found out that port 8006 is hard-coded in the pmgproxy sources.
This is just horrible! Why?
I have to hack into the source every time I upgrade.