# The ideal way to serve both Nginx Proxy Manager (NPM) and Lancache

**URL:** <https://forum.hhf.technology/t/the-ideal-way-to-serve-both-nginx-proxy-manager-npm-and-lancache/79>\
**Category:** Tutorials\
**Created:** [October 9, 2024, 10:35am UTC](https://forum.hhf.technology/t/the-ideal-way-to-serve-both-nginx-proxy-manager-npm-and-lancache/79 "2024-10-09T10:35:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hhf.technoloy](https://forum.hhf.technology/user_avatar/forum.hhf.technology/hhf.technoloy/32/68_2.png) [@hhf.technoloy](https://forum.hhf.technology/u/hhf.technoloy)\
**Post date:** [October 9, 2024, 10:35am UTC](https://forum.hhf.technology/t/the-ideal-way-to-serve-both-nginx-proxy-manager-npm-and-lancache/79/1 "2024-10-09T10:35:49Z")

</div>

The ideal way to serve both Nginx Proxy Manager (NPM) and Lancache is to have them listen on different ports and then forward the appropriate ports to each service.

Here’s how you can set it up:

1. **Lancache Configuration** :

2. **Nginx Proxy Manager Configuration** :

3. **Router Configuration** :

With this setup, the public-facing website will be served by NPM on ports 80 and 443, while the Lancache service will be accessible on ports 8080 and 8443. The router will forward the traffic to the appropriate service based on the port.

This way, both NPM and Lancache can run simultaneously without any conflicts, as they are listening on different ports. Clients accessing the Lancache service will need to use the appropriate ports (8080 and 8443) to connect to it.

By separating the ports, you can ensure that both services can run without any issues and provide the desired functionality.
