|
@ -6,20 +6,20 @@ |
|
|
rewrite ^/.*$ /index.php last; |
|
|
rewrite ^/.*$ /index.php last; |
|
|
expires max; |
|
|
expires max; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
# Whitelist |
|
|
# Whitelist |
|
|
## Let October handle if static file not exists |
|
|
## Let October handle if static file not exists |
|
|
location ~ ^/favicon\.ico { try_files $uri /index.php; } |
|
|
|
|
|
location ~ ^/sitemap\.xml { try_files $uri /index.php; } |
|
|
|
|
|
location ~ ^/robots\.txt { try_files $uri /index.php; } |
|
|
|
|
|
location ~ ^/humans\.txt { try_files $uri /index.php; } |
|
|
|
|
|
|
|
|
location = /favicon.ico { try_files $uri /index.php; } |
|
|
|
|
|
location = /sitemap.xml { try_files $uri /index.php; } |
|
|
|
|
|
location = /robots.txt { try_files $uri /index.php; } |
|
|
|
|
|
location = /humans.txt { 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/media { try_files $uri /404; } |
|
|
|
|
|
location ~ ^/storage/app/yml { try_files $uri /404; } |
|
|
|
|
|
location ~ ^/files { try_files $uri /404; } |
|
|
|
|
|
location ~ ^/storage/app/.*\.xls { try_files $uri /404; } |
|
|
|
|
|
location ~ ^/storage/temp/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/yml { try_files $uri /404; } |
|
|
|
|
|
location /storage/app/resized { try_files $uri /404; } |
|
|
|
|
|
#location /storage/temp/public { try_files $uri /404; } |
|
|
|
|
|
|
|
|
location ~ ^/modules/.*/assets { try_files $uri /404; } |
|
|
location ~ ^/modules/.*/assets { try_files $uri /404; } |
|
|
location ~ ^/modules/.*/resources { try_files $uri /404; } |
|
|
location ~ ^/modules/.*/resources { try_files $uri /404; } |
|
@ -48,5 +48,4 @@ |
|
|
access_log off; |
|
|
access_log off; |
|
|
expires max; |
|
|
expires max; |
|
|
} |
|
|
} |
|
|
location ~ ^/themes/.*/semantic { try_files $uri /404; } |
|
|
|
|
|
location ~ ^/themes/.*/resources { try_files $uri /404; } |
|
|
location ~ ^/themes/.*/resources { try_files $uri /404; } |