+ google & yandex confirmation files support & allow opening xml files in web-root
This commit is contained in:
@ -20,6 +20,12 @@
|
|||||||
location ~ ^/robots\.txt { try_files $uri /index.php; }
|
location ~ ^/robots\.txt { try_files $uri /index.php; }
|
||||||
location ~ ^/humans\.txt { try_files $uri /index.php; }
|
location ~ ^/humans\.txt { try_files $uri /index.php; }
|
||||||
|
|
||||||
|
## Google & Yandex website confirmation
|
||||||
|
location ~ ^/(google|yandex).*\.html { try_files $uri /index.php; }
|
||||||
|
|
||||||
|
## Xml files in web-root, like as sitemap
|
||||||
|
location ~ ^/.*\.xml { try_files $uri /index.php; }
|
||||||
|
|
||||||
## Let nginx return 404 if static file not exists
|
## Let nginx return 404 if static file not exists
|
||||||
location ~ ^/storage/app/uploads/public { try_files $uri 404; }
|
location ~ ^/storage/app/uploads/public { try_files $uri 404; }
|
||||||
location ~ ^/storage/app/media { try_files $uri 404; }
|
location ~ ^/storage/app/media { try_files $uri 404; }
|
||||||
|
Reference in New Issue
Block a user