Welcome!
Log In
Create A New Profile
Home
>
Mailing Lists
>
Nginx Mailing List - Russian
> Topic
Advanced
Re: Redirect в случае если файл присутствует
Previous Message
Next Message
Forum List
Message List
New Topic
Print View
siroco
April 18, 2016 06:33AM
Registered: 10 years ago
Posts: 21
Спасибо!
Сделал так, все работает как надо:
location /some-location {
# where we store sha256 sums
root /var/www/sha256sums;
# we are checking files plus ".sha256" extentions
set $filetocheck $uri.sha256;
set $cdn_server_name our-cdn.domain.com;
if (!-f $document_root$filetocheck) { return 404; break; }
return 302 http://$cdn_server_name$request_uri;
}
Reply
Quote
RSS
Subject
Author
Posted
Redirect в случае если файл присутствует
siroco
April 18, 2016 05:09AM
Re: Redirect в случае если файл присутствует
Igor Sysoev
April 18, 2016 05:18AM
Re: Redirect в случае если файл присутствует
Илья Шипицин
April 18, 2016 05:20AM
Re: Redirect в случае если файл присутствует
siroco
April 18, 2016 06:33AM
Re: Redirect в случае если файл присутствует
Igor Sysoev
April 18, 2016 06:48AM
Sorry, only registered users may post in this forum.
Click here to login
Online Users
Guests: 307
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018