I have a web application deployed on an nginx with the server name example.com
under the path var/www/app
.
I added another directory, var/www/demo
and it only contains a static .html
page; is it possible to have it like example.com/demo
?
I have already created a file in /etc/nginx/sites-enabled
with the following content:
server {
location /demo {
root /var/www;
}
}
But it is not working, can someone help?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…