How can I use a folder with IP ?????????
Michael Shadle
mike503 at gmail.com
Wed Dec 2 13:21:36 MSK 2009
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 at 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 at nginx.org
> http://nginx.org/mailman/listinfo/nginx
>
More information about the nginx
mailing list