R
R
rozochkin2014-02-04 17:36:46
PHP
rozochkin, 2014-02-04 17:36:46

Why is there a problem with nginx disallowing direct links in iOS Safari?

Good afternoon.
Available php project and nginx web server.
To deny access to the videos folder, I use the following config:

location /project/videos/ {
            alias /home/user/project/videos/;
            valid_referers blocked *.mydomain.com;
                if ($invalid_referer) {
                 return   403;
            }
            try_files $uri @php;
        }

It works fine on all desktop browsers, the problem is with ios Safari.
How can the problem be solved?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rozochkin, 2014-02-07
@rozochkin

I solved the issue by uploading a video through a php script.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question