+ laravel nginx config, php84

This commit is contained in:
WP Studio
2025-09-18 17:53:09 +03:00
parent 4c410fa89f
commit 0f3d560489
12 changed files with 98 additions and 3 deletions

View File

@ -0,0 +1,9 @@
location / {
rewrite ^/.*$ /index.php last;
}
# Whitelist
location = /favicon.ico { try_files $uri /index.php; }
location ~ ^/.*\.xml { try_files $uri /index.php; }
location = /robots.txt { try_files $uri /index.php; }
location = /humans.txt { try_files $uri /index.php; }

View File

@ -1,4 +1,11 @@
location / {
if ($request_method = '_OPTIONS') {
add_header 'Access-Control-Allow-Origin' '*';
add_header 'Access-Control-Allow-Methods' 'GET, POST, PUT, OPTIONS';
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization';
return 204;
}
rewrite ^/.*$ /index.php last;
}
location ~ ^/combine.*\.(css|js) {