9951 explained code solutions for 126 technologies


nginxUsing nested locations


server {
  location /images {
    location /images/icons {
      # ...
    }
    
    location /images/photos {
      # ...
    }
  }
}ctrl + c
server {

virtual server configuration block

location /images {

parent location block that matches requests starting with /images

location /images/icons

nested location that matches /images/icons

location /images/photos

nested location that matches /images/photos