As I have to maintain multiple web application I need to have different url. Also domain name yet not Decide from our company. So I have to use IP address for different hosted web application in AWS. I know in apache its quit easy. But I have to use Nginx server for this.
I hosted my all Laravel web application in var/www/html/
folder
Like
var/www/html/app1
var/www/html/app2
var/www/html/app3
And I want to make url like
Ip-address/app1
Ip-address/app2
Ip-address/app3
I already edit etc/nginx/sites-enabled/default
Make
location /app1 {
root var/www/html/app1/public;
}
location /app2 {
root var/www/html/app2/public;
}
location /app3 {
root var/www/html/app3/public;
}
But nothing happen. Its return 404. nginx not changing the root directory.