How can I use a folder with IP?


I want to use a folder like this


I have a default vhost to catch all

server {
listen 80 default;
server_name _;

location / {
    root   html;
    index  index.html index.htm;

# redirect server error pages to the static page /50x.html
error_page   500 502 503 504  /50x.html;
location = /50x.html {
    root   html;


How can I make this to show the pictures in the browser?


Posted at Nginx Forum:

make another server block, use server_name 123.45.678.9;

(if the catchall should be something different)