配置文件:
location ~* /app {
root /usr/local/nginx/;
}
创建目录
mkdir /usr/local/nginx/app
echo “wo shi App” > /usr/local/nginx/app/index.html
curl 127.0.0.1/app/index.html
配置文件:
location ~* /app {
root /usr/local/nginx/;
}
创建目录
mkdir /usr/local/nginx/app
echo “wo shi App” > /usr/local/nginx/app/index.html
curl 127.0.0.1/app/index.html