Welcome! Log In Create A New Profile

Advanced

Re: How can I use a folder with IP ?????????

December 02, 2009 05:26AM
make another server block, use server_name 123.45.678.9;

(if the catchall should be something different)

On Wed, Dec 2, 2009 at 2:19 AM, Varix <nginx-forum@nginx.us> wrote:
> Hallo,
>
> I want to use a folder like this
>
> http://123.45.678.9/photos/blabla.jpg
>
>
> 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?
>
> Varix
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,27331,27331#msg-27331
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx
>

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

How can I use a folder with IP ?????????

Varix December 02, 2009 05:19AM

Re: How can I use a folder with IP ?????????

mike December 02, 2009 05:26AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 47
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready