9951 explained code solutions for 126 technologies


nginxUsing multiple locations


server {
  location /images {
    # ...
  }

  location ~* \.(png|jpg|gif)$ {
    # ...
  }
}ctrl + c
server {

virtual server configuration block

location /images

standard location to process all requests starting with /images

location ~* \.(png|jpg|gif)$

second location that uses regex