No, you can't make two servers on the same port. You need to run Hue on an external server, or other port on localhost, then reverse proxy it.
So, looking at the Getting Started, Hue runs on 8000 by default <
https://github.com/cloudera/hue#getting-started>
Specifically, you are looking for this
Hue can be started on a different port with this command. Sounds like you want to just make that 8887
build/env/bin/hue runserver_plus 0.0.0.0:8888
But, one you change the port, you are welcome to have your proxy's localhost:8888/hue endpoint redirect to Hue running on localhost:8887 , for example