Create nginx.conf
This is untested, but *should* work, it's not a complicated config
This commit is contained in:
parent
930766b1a3
commit
073ee79eae
1 changed files with 15 additions and 0 deletions
15
configs/nginx.conf
Normal file
15
configs/nginx.conf
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
location ~ ^/Themes/[^/]+/Assets/ {
|
||||||
|
# If the requested file is an asset, serve it directly
|
||||||
|
if (-f $request_filename) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
location /robots.txt {
|
||||||
|
# Allow access to the robots.txt file
|
||||||
|
try_files $uri =204;
|
||||||
|
}
|
||||||
|
|
||||||
|
location / {
|
||||||
|
try_files $uri $uri/ /index.php?$args;
|
||||||
|
}
|
Loading…
Reference in a new issue