I have two folders /var/www/html/website1
and /var/www/html/website2
, and the ip of my server is 1.2.3.4
.
I would like to have :
1.2.3.4
pointing to/var/www/html/website1
1.2.3.4/ws2
pointing to/var/www/html/website2
What should I change or add to the server
block of the two nginx configuration files website1
and website2
?
Currently, I have the following configuration:
website1:
server {
listen 80;
server_name localhost;
}
website2:
server {
listen 80;
server_name localhost/ws2;
}