Have nexus 3 answer to http://localhost:8081/nexus and http://localhost:8081/nexus3

I am using nginx and apache as a reverse proxy to redirect incoming http request to http://nexus_server:8081
For apache example:
ProxyPass /repository/ http://nexus_server:8081/repository/