mirror of
https://github.com/getformwork/formwork.git
synced 2025-02-24 17:52:41 +01:00
Remove nginx.conf
This commit is contained in:
parent
b43107a03b
commit
d1d5a22b02
23
nginx.conf
23
nginx.conf
@ -1,23 +0,0 @@
|
||||
## Put these lines in the server block of your webserver nginx.conf file
|
||||
|
||||
charset utf-8;
|
||||
|
||||
location / {
|
||||
## Prevent direct access to Formwork folders
|
||||
## but allow access to template assets
|
||||
rewrite ^/templates/assets/(.*) /templates/assets/$1 break;
|
||||
rewrite ^/(cache|config|formwork|templates|vendor)/.* index.php last;
|
||||
|
||||
rewrite ^/(.*)\.(md|yml|json)/?$ /index.php last;
|
||||
rewrite ^/(\.(.*)|LICENSE|composer\.lock|nginx.conf)/?$ /index.php last;
|
||||
|
||||
## Let all URI be processed by index.php
|
||||
if (!-e $request_filename) {
|
||||
rewrite ^/.* /index.php;
|
||||
}
|
||||
}
|
||||
|
||||
location /admin {
|
||||
rewrite ^/admin/(accounts|languages|logs|schemes|src|views)/.* /index.php last;
|
||||
rewrite ^/admin/(\.(.*)|gulpfile\.js)/?$ /index.php last;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user