server {
listen 80;
server_name localhost;
location / {
root html/default;
index index.html index.htm;
}
}
#set port
server {
listen 8001;
server_name localhost;
location /{
root html/demo;
index index.html index.htm;
}
}