We have a proxy in front of all web services. The way we have the proxy configured is to listen on port 443 and forward requests on frontend:443/ws/* to the backend on port backend:22280. The aphlict startup code reads the client-uri port and starts up on port :443.
If I were manually start aphlict like node /usr/local/www/phabricator/phabricator/support/aphlict/server/aphlict_server.js --client-port=22280 --admin-port=22281 --admin-host=localhost --log=/var/log/aphlict.log everything works