If I want to work locally with 3 sites
site1 site2 site3
How do I configure my nginx and host?
sites-available:
server_name site1
location / {
proxy_pass http://127.0.0.1:81;
}
The other sites:
server_name site2
location / {
proxy_pass http://127.0.0.1:82;
}
server_name site3
location / {
proxy_pass http://127.0.0.1:83;
}
/etc/hosts:
127.0.0.1 site1
127.0.0.1 site2
127.0.0.1 site3
This does not work, they take me to the same site