2021-06-23 11:15:20 +01:00

28 lines
756 B
Plaintext

#config-v1
server {
listen 80 default_server;
server_name _;
root /app/phpmyadmin;
index index.php;
client_max_body_size 0;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
# set expiration of assets to MAX for caching
location ~* \.(ico|css|js)(\?[0-9]+)?$ {
expires max;
log_not_found off;
}
location ~* \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(.*)$;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}