-
Notifications
You must be signed in to change notification settings - Fork 2
/
nginx.conf
38 lines (32 loc) · 1.09 KB
/
nginx.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
server {
server_name eventum eventum.127.0.0.1.xip.io localhost;
root /app/htdocs;
listen 80 default_server;
absolute_redirect off;
index index.php;
charset utf-8;
location = /favicon.ico { log_not_found off; access_log off; }
location = /robots.txt { log_not_found off; access_log off; }
# Disable falling back to PHP script for the asset directories;
# nginx will return a 404 error when files are not found.
# http://nginx.org/en/docs/http/ngx_http_core_module.html#location
location ~ ^/(css|debugbar|fonts|images|js)/ {
try_files $uri =404;
}
# add alias for broken darkreader css processing
location = /[email protected] {
root /app/htdocs/css;
}
location ~ \.php$ {
fastcgi_pass unix:/run/php/php-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
include fastcgi_params;
# serve everything via index.php
fastcgi_param SCRIPT_FILENAME $realpath_root/index.php;
proxy_buffers 16 16k;
proxy_buffer_size 16k;
}
location ~ /\.ht {
deny all;
}
}