mirror of
https://github.com/getgrav/grav.git
synced 2026-01-29 19:00:12 +01:00
Serve images as static files
Ensure images are served as static files when using Nginx
This commit is contained in:
@@ -25,6 +25,10 @@ http {
|
||||
index index.php;
|
||||
if (!-e $request_filename){ rewrite ^(.*)$ /index.php last; }
|
||||
}
|
||||
|
||||
location /images/ {
|
||||
# Serve images as static
|
||||
}
|
||||
|
||||
location /user {
|
||||
rewrite ^/user/accounts/(.*)$ /error redirect;
|
||||
|
||||
Reference in New Issue
Block a user