Nginx configure the ports for different application domain

Local 8081 port has a web application, but only open port 80, which has an ip domain pet.aimiter.com,
to access the local port 8081 by application domain pet.aimiter.com.

Create a configuration file: sudo cp default pet.conf,
then change server_nameand proxy_passcan be.

Guess you like

Origin www.cnblogs.com/tongtianxiao/p/11573576.html