server {
server_name {{ server_name }};
root {{ docroot }};
-
+
client_max_body_size 16m;
location = /favicon.ico {
}
{% endif %}
- # Allow "Well-Known URIs" as per RFC 5785
+ # Allow "Well-Known URIs" as per RFC 5785.
location ~* ^/.well-known/ {
allow all;
}
location / {
try_files $uri /index.php?$query_string;
}
-
+
location @rewrite {
rewrite ^/(.*)$ /index.php?q=$1;
}