Check out this guide! It can be done with Apache too but you’ll need to research how to handle the virtual hosts.