feat: removing asset redirect
This commit is contained in:
parent
2ec4405b7b
commit
7ebfd3b4e4
@ -23,14 +23,6 @@ server {
|
|||||||
fastcgi_pass unix:/var/run/php/php-fpm.sock;
|
fastcgi_pass unix:/var/run/php/php-fpm.sock;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /assets {
|
|
||||||
set $modified_filename "";
|
|
||||||
if ($filename) {
|
|
||||||
set $modified_filename $filename;
|
|
||||||
}
|
|
||||||
rewrite ^ /legacy-asset?asset=$modified_filename last;
|
|
||||||
}
|
|
||||||
|
|
||||||
# handle .php
|
# handle .php
|
||||||
location ~ \.php$ {
|
location ~ \.php$ {
|
||||||
fastcgi_pass unix:/var/run/php/php-fpm.sock;
|
fastcgi_pass unix:/var/run/php/php-fpm.sock;
|
||||||
|
Loading…
Reference in New Issue
Block a user